summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/sound/awacs.cpp
diff options
context:
space:
mode:
author Olivier Galibert <galibert@pobox.com>2025-04-14 11:31:53 +0200
committer Olivier Galibert <galibert@pobox.com>2025-04-27 22:23:20 +0200
commitd0f1c15a0f6df2dd51a754cb46e6175b7079c8f2 (patch)
treebe35c94340442af08c316a8679089ee68e119fac /src/devices/sound/awacs.cpp
parentec636faeba5c5841c5a4a35b7c9dc2f06a00f538 (diff)
New sound infrastructure.
Should be added soon: - mute - speaker/microphone resampling To be added a little later: - compression - reverb Needs to be added by someone else: - coreaudio - direct - portaudio - xaudio2 - js
Diffstat (limited to 'src/devices/sound/awacs.cpp')
-rw-r--r--src/devices/sound/awacs.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/devices/sound/awacs.cpp b/src/devices/sound/awacs.cpp
index 236852c854b..3ddb10e7007 100644
--- a/src/devices/sound/awacs.cpp
+++ b/src/devices/sound/awacs.cpp
@@ -103,7 +103,7 @@ void awacs_device::device_reset()
// our sound stream
//-------------------------------------------------
-void awacs_device::sound_stream_update(sound_stream &stream, std::vector<read_stream_view> const &inputs, std::vector<write_stream_view> &outputs)
+void awacs_device::sound_stream_update(sound_stream &stream)
{
m_last_sample = machine().time();
@@ -119,14 +119,14 @@ void awacs_device::sound_stream_update(sound_stream &stream, std::vector<read_st
u32 data = m_output_cb(m_phase | (m_output_buffer ? 0x10000 : 0));
s16 left = data >> 16;
s16 right = data;
- outputs[0].put_int(0, left, 32768);
- outputs[1].put_int(0, right, 32768);
+ stream.put_int(0, 0, left, 32768);
+ stream.put_int(1, 0, right, 32768);
} else {
m_output_buffer = false;
- outputs[0].put_int(0, 0, 32768);
- outputs[1].put_int(0, 0, 32768);
+ stream.put_int(0, 0, 0, 32768);
+ stream.put_int(1, 0, 0, 32768);
}
if(m_active & ACTIVE_IN)