diff options
author | 2009-01-13 03:08:03 +0000 | |
---|---|---|
committer | 2009-01-13 03:08:03 +0000 | |
commit | 03af882d87c1553b1098bf51c800ca331bb1cc1d (patch) | |
tree | 54703d80a1646bb7f8ea18a4e99cacf2bbe558fa /src/emu/sound/okim6376.h | |
parent | 396439b2b492ff397dc245d0fa9a863e00550d81 (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/okim6376.h')
-rw-r--r-- | src/emu/sound/okim6376.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/emu/sound/okim6376.h b/src/emu/sound/okim6376.h index 6fe7221d831..2554ab0e37f 100644 --- a/src/emu/sound/okim6376.h +++ b/src/emu/sound/okim6376.h @@ -25,5 +25,6 @@ WRITE16_HANDLER( okim6376_data_1_msb_w ); WRITE16_HANDLER( okim6376_data_2_msb_w ); SND_GET_INFO( okim6376 ); +#define SOUND_OKIM6376 SND_GET_INFO_NAME( okim6376 ) #endif /* __OKIM6376_H__ */ |