Fix for incorrect sound bug in 0.124.

This commit is contained in:
Aaron Giles 2008-03-25 03:24:21 +00:00
parent 911beb11af
commit a070ad63d8

View File

@ -516,10 +516,10 @@ static void machine_config_detokenize(machine_config *config, const machine_conf
case MCONFIG_TOKEN_SOUND_ROUTE:
assert(sound != NULL);
in = sound->route[sound->routes].input;
out = sound->route[sound->routes].output;
TOKEN_UNGET_UINT32(tokens);
TOKEN_GET_UINT64_UNPACK4(tokens, entrytype, 8, out, -12, in, -12, gain, 32);
sound->route[sound->routes].input = in;
sound->route[sound->routes].output = out;
sound->route[sound->routes].gain = (float)gain / 16777216.0f;
sound->route[sound->routes].target = TOKEN_GET_STRING(tokens);
sound->routes++;