diff options
author | 2008-11-13 07:07:54 +0000 | |
---|---|---|
committer | 2008-11-13 07:07:54 +0000 | |
commit | eb08400613f1ea8259dc3fbd7aaf1be6ebf1c10a (patch) | |
tree | e1e0c6b501e8a2d8635cf34babe2ff54a8a6a86c /src/emu/sndintrf.h | |
parent | 63d10ee9bfbb5bc4adb2754a6b0fa790ea0a2851 (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/sndintrf.h')
-rw-r--r-- | src/emu/sndintrf.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/emu/sndintrf.h b/src/emu/sndintrf.h index da53a2c5bd1..73dc9629cd2 100644 --- a/src/emu/sndintrf.h +++ b/src/emu/sndintrf.h @@ -182,6 +182,32 @@ enum /*************************************************************************** + MACROS +***************************************************************************/ + +#define SND_GET_INFO_NAME(name) snd_get_info_##name +#define SND_GET_INFO(name) void SND_GET_INFO_NAME(name)(void *token, UINT32 state, sndinfo *info) +#define SND_GET_INFO_CALL(name) SND_GET_INFO_NAME(name)(token, state, info) + +#define SND_SET_INFO_NAME(name) snd_set_info_##name +#define SND_SET_INFO(name) void SND_SET_INFO_NAME(name)(void *token, UINT32 state, sndinfo *info) +#define SND_SET_INFO_CALL(name) SND_SET_INFO_NAME(name)(token, state, info) + +#define SND_START_NAME(name) snd_start_##name +#define SND_START(name) void *SND_START_NAME(name)(const char *tag, int sndindex, int clock, const void *config) +#define SND_START_CALL(name) SND_START_NAME(name)(tag, sndindex, clock, config) + +#define SND_STOP_NAME(name) snd_stop_##name +#define SND_STOP(name) void SND_STOP_NAME(name)(void *token) +#define SND_STOP_CALL(name) SND_STOP_NAME(name)(token) + +#define SND_RESET_NAME(name) snd_reset_##name +#define SND_RESET(name) void SND_RESET_NAME(name)(void *token) +#define SND_RESET_CALL(name) SND_RESET_NAME(name)(token) + + + +/*************************************************************************** TYPE DEFINITIONS ***************************************************************************/ |