From 1b48649379a3a0b23c2ac1b01a1235acf35c21da Mon Sep 17 00:00:00 2001 From: Aaron Giles Date: Tue, 13 Jan 2009 16:26:43 +0000 Subject: [PATCH] Fixed bug with Atari Ace's recent change that caused sound indexes to be incorrectly computed. --- src/emu/sndintrf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/emu/sndintrf.c b/src/emu/sndintrf.c index 465f2a1ec68..a9edededa42 100644 --- a/src/emu/sndintrf.c +++ b/src/emu/sndintrf.c @@ -129,11 +129,11 @@ int sndintrf_init_sound(running_machine *machine, int sndnum, const char *tag, s info->device->clock = clock; /* compute the index */ - totalsnd++; for (index = 0, sndidx = 0; sndidx < totalsnd; sndidx++) - if (sound[sndidx].sndtype == sndtype) + if (sound[sndidx].aliastype == info->aliastype) index++; info->index = index; + totalsnd++; /* start the chip, tagging all its streams */ current_sound_start = &sound[sndnum];