summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/sound/2203intf.c
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2008-11-13 07:07:54 +0000
committer Aaron Giles <aaron@aarongiles.com>2008-11-13 07:07:54 +0000
commiteb08400613f1ea8259dc3fbd7aaf1be6ebf1c10a (patch)
treee1e0c6b501e8a2d8635cf34babe2ff54a8a6a86c /src/emu/sound/2203intf.c
parent63d10ee9bfbb5bc4adb2754a6b0fa790ea0a2851 (diff)
From AtariAce:
With Aaron's change to macroize the cpu apis, the cpu/sound interfaces are now using different idioms. This patch fixes that. It uses the prefix SND_ instead of SOUND_, to avoid changing SOUND_START, SOUND_RESET in driver.h. While working on it, I noticed that the reset routines for k053260, msm5205, upd7759 and vlm5030 aren't hooked up, but I decided this was an oversight and macroized the functions anyways (but left them unhooked).
Diffstat (limited to 'src/emu/sound/2203intf.c')
-rw-r--r--src/emu/sound/2203intf.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/emu/sound/2203intf.c b/src/emu/sound/2203intf.c
index 63932b3a940..b5505002560 100644
--- a/src/emu/sound/2203intf.c
+++ b/src/emu/sound/2203intf.c
@@ -105,7 +105,7 @@ static STATE_POSTLOAD( ym2203_intf_postload )
}
-static void *ym2203_start(const char *tag, int sndindex, int clock, const void *config)
+static SND_START( ym2203 )
{
static const ym2203_interface generic_2203 =
{
@@ -147,14 +147,14 @@ static void *ym2203_start(const char *tag, int sndindex, int clock, const void *
return NULL;
}
-static void ym2203_stop(void *token)
+static SND_STOP( ym2203 )
{
struct ym2203_info *info = token;
ym2203_shutdown(info->chip);
ay8910_stop_ym(info->psg);
}
-static void ym2203_reset(void *token)
+static SND_RESET( ym2203 )
{
struct ym2203_info *info = token;
ym2203_reset_chip(info->chip);
@@ -326,7 +326,7 @@ WRITE8_HANDLER( ym2203_word_1_w )
* Generic get_info
**************************************************************************/
-static void ym2203_set_info(void *token, UINT32 state, sndinfo *info)
+static SND_SET_INFO( ym2203 )
{
switch (state)
{
@@ -335,17 +335,17 @@ static void ym2203_set_info(void *token, UINT32 state, sndinfo *info)
}
-void ym2203_get_info(void *token, UINT32 state, sndinfo *info)
+SND_GET_INFO( ym2203 )
{
switch (state)
{
/* --- the following bits of info are returned as 64-bit signed integers --- */
/* --- the following bits of info are returned as pointers to data or functions --- */
- case SNDINFO_PTR_SET_INFO: info->set_info = ym2203_set_info; break;
- case SNDINFO_PTR_START: info->start = ym2203_start; break;
- case SNDINFO_PTR_STOP: info->stop = ym2203_stop; break;
- case SNDINFO_PTR_RESET: info->reset = ym2203_reset; break;
+ case SNDINFO_PTR_SET_INFO: info->set_info = SND_SET_INFO_NAME( ym2203 ); break;
+ case SNDINFO_PTR_START: info->start = SND_START_NAME( ym2203 ); break;
+ case SNDINFO_PTR_STOP: info->stop = SND_STOP_NAME( ym2203 ); break;
+ case SNDINFO_PTR_RESET: info->reset = SND_RESET_NAME( ym2203 ); break;
/* --- the following bits of info are returned as NULL-terminated strings --- */
case SNDINFO_STR_NAME: info->s = "YM2203"; break;