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