summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/sound/st0016.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/sound/st0016.c')
-rw-r--r--src/emu/sound/st0016.c42
1 files changed, 40 insertions, 2 deletions
diff --git a/src/emu/sound/st0016.c b/src/emu/sound/st0016.c
index e67e235f9d5..739b5a6aa7d 100644
--- a/src/emu/sound/st0016.c
+++ b/src/emu/sound/st0016.c
@@ -22,7 +22,7 @@ INLINE st0016_state *get_safe_token(device_t *device)
{
assert(device != NULL);
assert(device->type() == ST0016);
- return (st0016_state *)downcast<legacy_device_base *>(device)->token();
+ return (st0016_state *)downcast<st0016_device *>(device)->token();
}
@@ -173,4 +173,42 @@ DEVICE_GET_INFO( st0016 )
}
-DEFINE_LEGACY_SOUND_DEVICE(ST0016, st0016);
+const device_type ST0016 = &device_creator<st0016_device>;
+
+st0016_device::st0016_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
+ : device_t(mconfig, ST0016, "ST0016", tag, owner, clock),
+ device_sound_interface(mconfig, *this)
+{
+ m_token = global_alloc_array_clear(UINT8, sizeof(st0016_state));
+}
+
+//-------------------------------------------------
+// device_config_complete - perform any
+// operations now that the configuration is
+// complete
+//-------------------------------------------------
+
+void st0016_device::device_config_complete()
+{
+}
+
+//-------------------------------------------------
+// device_start - device-specific startup
+//-------------------------------------------------
+
+void st0016_device::device_start()
+{
+ DEVICE_START_NAME( st0016 )(this);
+}
+
+//-------------------------------------------------
+// sound_stream_update - handle a stream update
+//-------------------------------------------------
+
+void st0016_device::sound_stream_update(sound_stream &stream, stream_sample_t **inputs, stream_sample_t **outputs, int samples)
+{
+ // should never get here
+ fatalerror("sound_stream_update called; not applicable to legacy sound devices\n");
+}
+
+