diff options
Diffstat (limited to 'src/devices/sound/vrender0.h')
-rw-r--r-- | src/devices/sound/vrender0.h | 24 |
1 files changed, 4 insertions, 20 deletions
diff --git a/src/devices/sound/vrender0.h b/src/devices/sound/vrender0.h index 77306137752..ecb629d61a8 100644 --- a/src/devices/sound/vrender0.h +++ b/src/devices/sound/vrender0.h @@ -7,32 +7,17 @@ //************************************************************************** -// INTERFACE CONFIGURATION MACROS -//************************************************************************** - -#define MCFG_SOUND_VRENDER0_ADD(_tag, _clock) \ - MCFG_DEVICE_ADD(_tag, VRENDER0, _clock) -#define MCFG_SOUND_VRENDER0_REPLACE(_tag, _clock) \ - MCFG_DEVICE_REPLACE(_tag, VRENDER0, _clock) - -#define MCFG_VR0_REGBASE(_base) \ - downcast<vrender0_device &>(*device).set_reg_base(_base); - -//************************************************************************** // TYPE DEFINITIONS //************************************************************************** -// ======================> vrender0_device +// ======================> vr0sound_device -class vrender0_device : public device_t, +class vr0sound_device : public device_t, public device_sound_interface { public: - vrender0_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - - // configuration - void set_reg_base(int base) { m_reg_base = base; } + vr0sound_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); DECLARE_READ32_MEMBER( vr0_snd_read ); DECLARE_WRITE32_MEMBER( vr0_snd_write ); @@ -51,11 +36,10 @@ private: uint32_t *m_FBBase; uint32_t m_SOUNDREGS[0x10000/4]; sound_stream *m_stream; - uint32_t m_reg_base; void VR0_RenderAudio(int nsamples, stream_sample_t *l, stream_sample_t *r); }; -DECLARE_DEVICE_TYPE(VRENDER0, vrender0_device) +DECLARE_DEVICE_TYPE(SOUND_VRENDER0, vr0sound_device) #endif // MAME_SOUND_VRENDER0_H |