summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/sound/ymf278b.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/sound/ymf278b.h')
-rw-r--r--src/emu/sound/ymf278b.h25
1 files changed, 24 insertions, 1 deletions
diff --git a/src/emu/sound/ymf278b.h b/src/emu/sound/ymf278b.h
index e7918cbe5a5..685ba066c8e 100644
--- a/src/emu/sound/ymf278b.h
+++ b/src/emu/sound/ymf278b.h
@@ -17,6 +17,29 @@ struct _ymf278b_interface
READ8_DEVICE_HANDLER( ymf278b_r );
WRITE8_DEVICE_HANDLER( ymf278b_w );
-DECLARE_LEGACY_SOUND_DEVICE(YMF278B, ymf278b);
+class ymf278b_device : public device_t,
+ public device_sound_interface
+{
+public:
+ ymf278b_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
+ ~ymf278b_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();
+ virtual void device_reset();
+
+ // 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 YMF278B;
+
#endif /* __YMF278B_H__ */