diff options
Diffstat (limited to 'src/mame/audio/tiamc1.c')
-rw-r--r-- | src/mame/audio/tiamc1.c | 42 |
1 files changed, 40 insertions, 2 deletions
diff --git a/src/mame/audio/tiamc1.c b/src/mame/audio/tiamc1.c index 7dac127017b..f979e3e4ad8 100644 --- a/src/mame/audio/tiamc1.c +++ b/src/mame/audio/tiamc1.c @@ -75,7 +75,7 @@ INLINE tiamc1_sound_state *get_safe_token(device_t *device) assert(device != NULL); assert(device->type() == TIAMC1); - return (tiamc1_sound_state *)downcast<legacy_device_base *>(device)->token(); + return (tiamc1_sound_state *)downcast<tiamc1_sound_device *>(device)->token(); } @@ -348,4 +348,42 @@ DEVICE_GET_INFO( tiamc1_sound ) -DEFINE_LEGACY_SOUND_DEVICE(TIAMC1, tiamc1_sound); +const device_type TIAMC1 = &device_creator<tiamc1_sound_device>; + +tiamc1_sound_device::tiamc1_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) + : device_t(mconfig, TIAMC1, "TIA-MC1 Custom", tag, owner, clock), + device_sound_interface(mconfig, *this) +{ + m_token = global_alloc_array_clear(UINT8, sizeof(tiamc1_sound_state)); +} + +//------------------------------------------------- +// device_config_complete - perform any +// operations now that the configuration is +// complete +//------------------------------------------------- + +void tiamc1_sound_device::device_config_complete() +{ +} + +//------------------------------------------------- +// device_start - device-specific startup +//------------------------------------------------- + +void tiamc1_sound_device::device_start() +{ + DEVICE_START_NAME( tiamc1_sound )(this); +} + +//------------------------------------------------- +// sound_stream_update - handle a stream update +//------------------------------------------------- + +void tiamc1_sound_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"); +} + + |