diff options
Diffstat (limited to 'src/mame/audio/amiga.c')
-rw-r--r-- | src/mame/audio/amiga.c | 42 |
1 files changed, 40 insertions, 2 deletions
diff --git a/src/mame/audio/amiga.c b/src/mame/audio/amiga.c index 4fb762e563d..d04e341bb84 100644 --- a/src/mame/audio/amiga.c +++ b/src/mame/audio/amiga.c @@ -67,7 +67,7 @@ INLINE amiga_audio *get_safe_token( device_t *device ) assert(device != NULL); assert(device->type() == AMIGA); - return (amiga_audio *)downcast<legacy_device_base *>(device)->token(); + return (amiga_audio *)downcast<amiga_sound_device *>(device)->token(); } /************************************* @@ -295,4 +295,42 @@ DEVICE_GET_INFO( amiga_sound ) } -DEFINE_LEGACY_SOUND_DEVICE(AMIGA, amiga_sound); +const device_type AMIGA = &device_creator<amiga_sound_device>; + +amiga_sound_device::amiga_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) + : device_t(mconfig, AMIGA, "Amiga Paula", tag, owner, clock), + device_sound_interface(mconfig, *this) +{ + m_token = global_alloc_array_clear(UINT8, sizeof(amiga_audio)); +} + +//------------------------------------------------- +// device_config_complete - perform any +// operations now that the configuration is +// complete +//------------------------------------------------- + +void amiga_sound_device::device_config_complete() +{ +} + +//------------------------------------------------- +// device_start - device-specific startup +//------------------------------------------------- + +void amiga_sound_device::device_start() +{ + DEVICE_START_NAME( amiga_sound )(this); +} + +//------------------------------------------------- +// sound_stream_update - handle a stream update +//------------------------------------------------- + +void amiga_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"); +} + + |