summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/sound/cem3394.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/sound/cem3394.h')
-rw-r--r--src/emu/sound/cem3394.h24
1 files changed, 23 insertions, 1 deletions
diff --git a/src/emu/sound/cem3394.h b/src/emu/sound/cem3394.h
index 450e80ef670..0382e2b96a7 100644
--- a/src/emu/sound/cem3394.h
+++ b/src/emu/sound/cem3394.h
@@ -45,6 +45,28 @@ void cem3394_set_voltage(device_t *device, int input, double voltage);
CEM3394_FINAL_GAIN: gain, in dB */
double cem3394_get_parameter(device_t *device, int input);
-DECLARE_LEGACY_SOUND_DEVICE(CEM3394, cem3394);
+class cem3394_device : public device_t,
+ public device_sound_interface
+{
+public:
+ cem3394_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
+ ~cem3394_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 CEM3394;
+
#endif /* __CEM3394_H__ */