summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/sound/sn76496.c
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2009-01-13 03:08:03 +0000
committer Aaron Giles <aaron@aarongiles.com>2009-01-13 03:08:03 +0000
commit03af882d87c1553b1098bf51c800ca331bb1cc1d (patch)
tree54703d80a1646bb7f8ea18a4e99cacf2bbe558fa /src/emu/sound/sn76496.c
parent396439b2b492ff397dc245d0fa9a863e00550d81 (diff)
From: Atari Ace [mailto:atari_ace@verizon.net]
Sent: Monday, December 22, 2008 3:00 PM To: submit@mamedev.org Cc: atariace@hotmail.com Subject: [patch] Make SOUND_xxx pointers to SND_GET_INFO functions Hi mamedev, This patch probably should wait till after 0.129 goes out, but may be of interest regardless. It makes the treatment of SOUND_xxx the same as that of CPU_xxx. That is, they are function pointers to the SND_GET_INFO routine for the sound. The first patch just adds some missing include files and modifies a few cases where a sound_type was used as an integer. This could go in now. The second patch then adds the needed #defines to all the sound headers (it assumes the previous patch I sent to add the SND_GET_INFO declarations was applied), and modifies the sound code accordingly. It also moves the sound clock to the device object. Note that the dummy sound core is removed entirely. I cheated a bit and made VERIFY_SNDTI also declare and fill in the sndnum, making this an INLINE function would probably be more appropriate, but all of this code's days are numbered. There may be some performance loss in drivers that expect sndti_xxx routines to be fast, since sound_matrix has been removed. The performance however should be similar to looking up items in a devicelist, so those drivers will have to adjust eventually. ~aa
Diffstat (limited to 'src/emu/sound/sn76496.c')
-rw-r--r--src/emu/sound/sn76496.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/emu/sound/sn76496.c b/src/emu/sound/sn76496.c
index 7b8819269b4..3a1ed9077bf 100644
--- a/src/emu/sound/sn76496.c
+++ b/src/emu/sound/sn76496.c
@@ -392,7 +392,7 @@ SND_GET_INFO( sn76496 )
switch (state)
{
/* --- the following bits of info are returned as 64-bit signed integers --- */
- case SNDINFO_INT_ALIAS: info->i = SOUND_SN76496; break;
+ case SNDINFO_FCT_ALIAS: info->type = SOUND_SN76496; break;
/* --- the following bits of info are returned as pointers to data or functions --- */
case SNDINFO_PTR_SET_INFO: info->set_info = SND_SET_INFO_NAME( sn76496 ); break;