summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/sound/k051649.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/k051649.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/k051649.c')
-rw-r--r--src/emu/sound/k051649.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/emu/sound/k051649.c b/src/emu/sound/k051649.c
index 478f87b1f02..58d142d4ca0 100644
--- a/src/emu/sound/k051649.c
+++ b/src/emu/sound/k051649.c
@@ -127,7 +127,7 @@ static void k051649_update(void *param, stream_sample_t **inputs, stream_sample_
*buffer++ = info->mixer_lookup[*mix++];
}
-static void *k051649_start(const char *tag, int sndindex, int clock, const void *config)
+static SND_START( k051649 )
{
struct k051649_info *info;
@@ -149,9 +149,9 @@ static void *k051649_start(const char *tag, int sndindex, int clock, const void
return info;
}
-static void k051649_reset(void *chip)
+static SND_RESET( k051649 )
{
- struct k051649_info *info = chip;
+ struct k051649_info *info = token;
k051649_sound_channel *voice = info->channel_list;
int i;
@@ -223,7 +223,7 @@ WRITE8_HANDLER( k051649_keyonoff_w )
* Generic get_info
**************************************************************************/
-static void k051649_set_info(void *token, UINT32 state, sndinfo *info)
+static SND_SET_INFO( k051649 )
{
switch (state)
{
@@ -232,17 +232,17 @@ static void k051649_set_info(void *token, UINT32 state, sndinfo *info)
}
-void k051649_get_info(void *token, UINT32 state, sndinfo *info)
+SND_GET_INFO( k051649 )
{
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 = k051649_set_info; break;
- case SNDINFO_PTR_START: info->start = k051649_start; break;
+ case SNDINFO_PTR_SET_INFO: info->set_info = SND_SET_INFO_NAME( k051649 ); break;
+ case SNDINFO_PTR_START: info->start = SND_START_NAME( k051649 ); break;
case SNDINFO_PTR_STOP: /* nothing */ break;
- case SNDINFO_PTR_RESET: info->reset = k051649_reset; break;
+ case SNDINFO_PTR_RESET: info->reset = SND_RESET_NAME( k051649 ); break;
/* --- the following bits of info are returned as NULL-terminated strings --- */
case SNDINFO_STR_NAME: info->s = "K051649"; break;