summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/sound/spu.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/sound/spu.cpp')
-rw-r--r--src/devices/sound/spu.cpp13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/devices/sound/spu.cpp b/src/devices/sound/spu.cpp
index 848e432cb02..e6b5d2e5fa3 100644
--- a/src/devices/sound/spu.cpp
+++ b/src/devices/sound/spu.cpp
@@ -2769,20 +2769,17 @@ void spu_device::update_timing()
//
//
-void spu_device::sound_stream_update(sound_stream &stream, std::vector<read_stream_view> const &inputs, std::vector<write_stream_view> &outputs)
+void spu_device::sound_stream_update(sound_stream &stream)
{
int16_t temp[44100], *src;
- auto &outL = outputs[0];
- auto &outR = outputs[1];
-
- generate(temp, outputs[0].samples()*4); // second parameter is bytes, * 2 (size of int16_t) * 2 (stereo)
+ generate(temp, stream.samples()*4); // second parameter is bytes, * 2 (size of int16_t) * 2 (stereo)
src = &temp[0];
- for (int i = 0; i < outputs[0].samples(); i++)
+ for (int i = 0; i < stream.samples(); i++)
{
- outL.put_int(i, *src++, 32768);
- outR.put_int(i, *src++, 32768);
+ stream.put_int(0, i, *src++, 32768);
+ stream.put_int(1, i, *src++, 32768);
}
}