mirror of
https://github.com/holub/mame
synced 2025-04-23 00:39:36 +03:00
Fix for incorrect sound bug in 0.124.
This commit is contained in:
parent
911beb11af
commit
a070ad63d8
@ -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++;
|
||||
|
Loading…
Reference in New Issue
Block a user