diff options
author | 2012-09-03 13:56:17 +0000 | |
---|---|---|
committer | 2012-09-03 13:56:17 +0000 | |
commit | b711b1a007c3a4a75e78eb88f9a6afe4d4180728 (patch) | |
tree | 1498465a0134d7b039fce9271d2b388d218425d4 /src/mess/includes/vc4000.h | |
parent | f552908ea962ecdd7e94ea609c84144815b64557 (diff) |
conversion of legacy devices into modern wip (no whatsnew)
Diffstat (limited to 'src/mess/includes/vc4000.h')
-rw-r--r-- | src/mess/includes/vc4000.h | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/src/mess/includes/vc4000.h b/src/mess/includes/vc4000.h index c8c44e0d025..ee141dcb2bb 100644 --- a/src/mess/includes/vc4000.h +++ b/src/mess/includes/vc4000.h @@ -106,7 +106,29 @@ extern SCREEN_UPDATE_IND16( vc4000 ); /*----------- defined in audio/vc4000.c -----------*/ -DECLARE_LEGACY_SOUND_DEVICE(VC4000, vc4000_sound); +class vc4000_sound_device : public device_t, + public device_sound_interface +{ +public: + vc4000_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); + ~vc4000_sound_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 VC4000; + void vc4000_soundport_w (device_t *device, int mode, int data); |