diff options
Diffstat (limited to 'src/devices/sound/t6721a.cpp')
-rw-r--r-- | src/devices/sound/t6721a.cpp | 30 |
1 files changed, 12 insertions, 18 deletions
diff --git a/src/devices/sound/t6721a.cpp b/src/devices/sound/t6721a.cpp index 423cd3edc19..ae4ee8551eb 100644 --- a/src/devices/sound/t6721a.cpp +++ b/src/devices/sound/t6721a.cpp @@ -31,14 +31,14 @@ DEFINE_DEVICE_TYPE(T6721A, t6721a_device, "t6721a", "Toshiba T6721A") // t6721a_device - constructor //------------------------------------------------- -t6721a_device::t6721a_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) - : device_t(mconfig, T6721A, tag, owner, clock), - device_sound_interface(mconfig, *this), - m_write_eos(*this), - m_write_phi2(*this), - m_write_dtrd(*this), - m_write_apd(*this), - m_stream(nullptr) +t6721a_device::t6721a_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) : + device_t(mconfig, T6721A, tag, owner, clock), + device_sound_interface(mconfig, *this), + m_write_eos(*this), + m_write_phi2(*this), + m_write_dtrd(*this), + m_write_apd(*this), + m_stream(nullptr) { } @@ -49,14 +49,8 @@ t6721a_device::t6721a_device(const machine_config &mconfig, const char *tag, dev void t6721a_device::device_start() { - // resolve callbacks - m_write_eos.resolve_safe(); - m_write_phi2.resolve_safe(); - m_write_dtrd.resolve_safe(); - m_write_apd.resolve_safe(); - // create sound stream - m_stream = machine().sound().stream_alloc(*this, 0, 1, machine().sample_rate()); + m_stream = stream_alloc(0, 1, machine().sample_rate()); } @@ -65,7 +59,7 @@ void t6721a_device::device_start() // our sound stream //------------------------------------------------- -void t6721a_device::sound_stream_update(sound_stream &stream, stream_sample_t **inputs, stream_sample_t **outputs, int samples) +void t6721a_device::sound_stream_update(sound_stream &stream) { } @@ -93,7 +87,7 @@ void t6721a_device::write(uint8_t data) // di_w - data input write //------------------------------------------------- -WRITE_LINE_MEMBER( t6721a_device::di_w ) +void t6721a_device::di_w(int state) { } @@ -102,7 +96,7 @@ WRITE_LINE_MEMBER( t6721a_device::di_w ) // eos_r - eos read //------------------------------------------------- -READ_LINE_MEMBER( t6721a_device::eos_r ) +int t6721a_device::eos_r() { return 1; } |