mirror of
https://github.com/holub/mame
synced 2025-05-22 05:38:52 +03:00
Fixed bug with Atari Ace's recent change that caused sound indexes to be incorrectly
computed.
This commit is contained in:
parent
0b6ec32822
commit
1b48649379
@ -129,11 +129,11 @@ int sndintrf_init_sound(running_machine *machine, int sndnum, const char *tag, s
|
|||||||
info->device->clock = clock;
|
info->device->clock = clock;
|
||||||
|
|
||||||
/* compute the index */
|
/* compute the index */
|
||||||
totalsnd++;
|
|
||||||
for (index = 0, sndidx = 0; sndidx < totalsnd; sndidx++)
|
for (index = 0, sndidx = 0; sndidx < totalsnd; sndidx++)
|
||||||
if (sound[sndidx].sndtype == sndtype)
|
if (sound[sndidx].aliastype == info->aliastype)
|
||||||
index++;
|
index++;
|
||||||
info->index = index;
|
info->index = index;
|
||||||
|
totalsnd++;
|
||||||
|
|
||||||
/* start the chip, tagging all its streams */
|
/* start the chip, tagging all its streams */
|
||||||
current_sound_start = &sound[sndnum];
|
current_sound_start = &sound[sndnum];
|
||||||
|
Loading…
Reference in New Issue
Block a user