diff options
Diffstat (limited to 'src/emu/sound/segapcm.h')
-rw-r--r-- | src/emu/sound/segapcm.h | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/src/emu/sound/segapcm.h b/src/emu/sound/segapcm.h index c3b0998ee7f..2190d6a612f 100644 --- a/src/emu/sound/segapcm.h +++ b/src/emu/sound/segapcm.h @@ -25,6 +25,28 @@ struct _sega_pcm_interface WRITE8_DEVICE_HANDLER( sega_pcm_w ); READ8_DEVICE_HANDLER( sega_pcm_r ); -DECLARE_LEGACY_SOUND_DEVICE(SEGAPCM, segapcm); +class segapcm_device : public device_t, + public device_sound_interface +{ +public: + segapcm_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); + ~segapcm_device() { global_free(m_token); } + + // access to legacy token + void *token() const { assert(m_token != NULL); return m_token; } +protected: + // device-level overrides + virtual void device_config_complete(); + virtual void device_start(); + + // sound stream update overrides + virtual void sound_stream_update(sound_stream &stream, stream_sample_t **inputs, stream_sample_t **outputs, int samples); +private: + // internal state + void *m_token; +}; + +extern const device_type SEGAPCM; + #endif /* __SEGAPCM_H__ */ |