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