summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/sound/qsound.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/sound/qsound.cpp')
-rw-r--r--src/devices/sound/qsound.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/devices/sound/qsound.cpp b/src/devices/sound/qsound.cpp
index 257fa135bb5..306b22d9c0b 100644
--- a/src/devices/sound/qsound.cpp
+++ b/src/devices/sound/qsound.cpp
@@ -139,6 +139,10 @@ qsound_device::qsound_device(machine_config const &mconfig, char const *tag, dev
{
}
+qsound_device::~qsound_device()
+{
+}
+
void qsound_device::qsound_w(offs_t offset, u8 data)
{
@@ -253,10 +257,10 @@ void qsound_device::device_reset()
// sound_stream_update - handle a stream update
//-------------------------------------------------
-void qsound_device::sound_stream_update(sound_stream &stream, std::vector<read_stream_view> const &inputs, std::vector<write_stream_view> &outputs)
+void qsound_device::sound_stream_update(sound_stream &stream)
{
- outputs[0].fill(stream_buffer::sample_t(m_samples[0]) * (1.0 / 32768.0));
- outputs[1].fill(stream_buffer::sample_t(m_samples[1]) * (1.0 / 32768.0));
+ stream.fill(0, sound_stream::sample_t(m_samples[0]) * (1.0 / 32768.0));
+ stream.fill(1, sound_stream::sample_t(m_samples[1]) * (1.0 / 32768.0));
}