diff options
Diffstat (limited to 'src/mess/audio/svision.c')
-rw-r--r-- | src/mess/audio/svision.c | 42 |
1 files changed, 40 insertions, 2 deletions
diff --git a/src/mess/audio/svision.c b/src/mess/audio/svision.c index 3cb3715c768..9a678e36e85 100644 --- a/src/mess/audio/svision.c +++ b/src/mess/audio/svision.c @@ -59,7 +59,7 @@ INLINE svision_sound_state *get_safe_token(device_t *device) { assert(device != NULL); assert(device->type() == SVISION); - return (svision_sound_state *)downcast<legacy_device_base *>(device)->token(); + return (svision_sound_state *)downcast<svision_sound_device *>(device)->token(); } int *svision_dma_finished(device_t *device) @@ -315,4 +315,42 @@ DEVICE_GET_INFO( svision_sound ) } } -DEFINE_LEGACY_SOUND_DEVICE(SVISION, svision_sound); +const device_type SVISION = &device_creator<svision_sound_device>; + +svision_sound_device::svision_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) + : device_t(mconfig, SVISION, "Super Vision Custom", tag, owner, clock), + device_sound_interface(mconfig, *this) +{ + m_token = global_alloc_array_clear(UINT8, sizeof(svision_sound_state)); +} + +//------------------------------------------------- +// device_config_complete - perform any +// operations now that the configuration is +// complete +//------------------------------------------------- + +void svision_sound_device::device_config_complete() +{ +} + +//------------------------------------------------- +// device_start - device-specific startup +//------------------------------------------------- + +void svision_sound_device::device_start() +{ + DEVICE_START_NAME( svision_sound )(this); +} + +//------------------------------------------------- +// sound_stream_update - handle a stream update +//------------------------------------------------- + +void svision_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"); +} + + |