Fixed bug with Atari Ace's recent change that caused sound indexes to be incorrectly

computed.
This commit is contained in:
Aaron Giles 2009-01-13 16:26:43 +00:00
parent 0b6ec32822
commit 1b48649379

View File

@ -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];