diff options
Diffstat (limited to 'src/emu/sound/tms3615.c')
-rw-r--r-- | src/emu/sound/tms3615.c | 42 |
1 files changed, 40 insertions, 2 deletions
diff --git a/src/emu/sound/tms3615.c b/src/emu/sound/tms3615.c index 5c263335fee..a051f965ae8 100644 --- a/src/emu/sound/tms3615.c +++ b/src/emu/sound/tms3615.c @@ -24,7 +24,7 @@ INLINE tms_state *get_safe_token(device_t *device) { assert(device != NULL); assert(device->type() == TMS3615); - return (tms_state *)downcast<legacy_device_base *>(device)->token(); + return (tms_state *)downcast<tms3615_device *>(device)->token(); } @@ -120,4 +120,42 @@ DEVICE_GET_INFO( tms3615 ) } -DEFINE_LEGACY_SOUND_DEVICE(TMS3615, tms3615); +const device_type TMS3615 = &device_creator<tms3615_device>; + +tms3615_device::tms3615_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) + : device_t(mconfig, TMS3615, "TMS3615", tag, owner, clock), + device_sound_interface(mconfig, *this) +{ + m_token = global_alloc_array_clear(UINT8, sizeof(tms_state)); +} + +//------------------------------------------------- +// device_config_complete - perform any +// operations now that the configuration is +// complete +//------------------------------------------------- + +void tms3615_device::device_config_complete() +{ +} + +//------------------------------------------------- +// device_start - device-specific startup +//------------------------------------------------- + +void tms3615_device::device_start() +{ + DEVICE_START_NAME( tms3615 )(this); +} + +//------------------------------------------------- +// sound_stream_update - handle a stream update +//------------------------------------------------- + +void tms3615_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"); +} + + |