summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/sound/tms3615.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/tms3615.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/tms3615.c')
-rw-r--r--src/emu/sound/tms3615.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/emu/sound/tms3615.c b/src/emu/sound/tms3615.c
index 56b0ef46f3e..3c0ab0e3032 100644
--- a/src/emu/sound/tms3615.c
+++ b/src/emu/sound/tms3615.c
@@ -77,7 +77,7 @@ void tms3615_enable_w(int chip, int enable)
tms->enable = enable;
}
-static void *tms3615_start(const char *tag, int sndindex, int clock, const void *config)
+static SND_START( tms3615 )
{
struct TMS3615 *tms;
@@ -95,7 +95,7 @@ static void *tms3615_start(const char *tag, int sndindex, int clock, const void
* Generic get_info
**************************************************************************/
-static void tms3615_set_info(void *token, UINT32 state, sndinfo *info)
+static SND_SET_INFO( tms3615 )
{
switch (state)
{
@@ -103,15 +103,15 @@ static void tms3615_set_info(void *token, UINT32 state, sndinfo *info)
}
}
-void tms3615_get_info(void *token, UINT32 state, sndinfo *info)
+SND_GET_INFO( tms3615 )
{
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 = tms3615_set_info; break;
- case SNDINFO_PTR_START: info->start = tms3615_start; break;
+ case SNDINFO_PTR_SET_INFO: info->set_info = SND_SET_INFO_NAME( tms3615 ); break;
+ case SNDINFO_PTR_START: info->start = SND_START_NAME( tms3615 ); break;
case SNDINFO_PTR_STOP: /* Nothing */ break;
case SNDINFO_PTR_RESET: /* Nothing */ break;