diff options
Diffstat (limited to 'src/emu/sound/es5506.c')
-rw-r--r-- | src/emu/sound/es5506.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/emu/sound/es5506.c b/src/emu/sound/es5506.c index f674f532845..a3e180f703c 100644 --- a/src/emu/sound/es5506.c +++ b/src/emu/sound/es5506.c @@ -820,7 +820,7 @@ static void es5506_update(void *param, stream_sample_t **inputs, stream_sample_t ***********************************************************************************************/ -static void *es5506_start_common(sound_type sndtype, int sndindex, int clock, const void *config) +static void *es5506_start_common(sound_type sndtype, const char *tag, int sndindex, int clock, const void *config) { const struct ES5506interface *intf = config; struct ES5506Chip *chip; @@ -842,10 +842,10 @@ static void *es5506_start_common(sound_type sndtype, int sndindex, int clock, co chip->stream = stream_create(0, 2, clock / (16*32), chip, es5506_update); /* initialize the regions */ - chip->region_base[0] = intf->region0 ? (UINT16 *)memory_region(Machine, intf->region0) : NULL; - chip->region_base[1] = intf->region1 ? (UINT16 *)memory_region(Machine, intf->region1) : NULL; - chip->region_base[2] = intf->region2 ? (UINT16 *)memory_region(Machine, intf->region2) : NULL; - chip->region_base[3] = intf->region3 ? (UINT16 *)memory_region(Machine, intf->region3) : NULL; + chip->region_base[0] = intf->region0 ? (UINT16 *)memory_region(Machine, RGNCLASS_SOUND, intf->region0) : NULL; + chip->region_base[1] = intf->region1 ? (UINT16 *)memory_region(Machine, RGNCLASS_SOUND, intf->region1) : NULL; + chip->region_base[2] = intf->region2 ? (UINT16 *)memory_region(Machine, RGNCLASS_SOUND, intf->region2) : NULL; + chip->region_base[3] = intf->region3 ? (UINT16 *)memory_region(Machine, RGNCLASS_SOUND, intf->region3) : NULL; /* initialize the rest of the structure */ chip->master_clock = clock; @@ -872,9 +872,9 @@ static void *es5506_start_common(sound_type sndtype, int sndindex, int clock, co } -static void *es5506_start(int sndindex, int clock, const void *config) +static void *es5506_start(const char *tag, int sndindex, int clock, const void *config) { - return es5506_start_common(SOUND_ES5506, sndindex, clock, config); + return es5506_start_common(SOUND_ES5506, tag, sndindex, clock, config); } @@ -1499,7 +1499,7 @@ void ES5506_voice_bank_1_w(int voice, int bank) ***********************************************************************************************/ -static void *es5505_start(int sndindex, int clock, const void *config) +static void *es5505_start(const char *tag, int sndindex, int clock, const void *config) { const struct ES5505interface *intf = config; struct ES5506interface es5506intf; @@ -1511,7 +1511,7 @@ static void *es5505_start(int sndindex, int clock, const void *config) es5506intf.irq_callback = intf->irq_callback; es5506intf.read_port = intf->read_port; - return es5506_start_common(SOUND_ES5505, sndindex, clock, &es5506intf); + return es5506_start_common(SOUND_ES5505, tag, sndindex, clock, &es5506intf); } |