summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/sound/k054539.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/sound/k054539.cpp')
-rw-r--r--src/devices/sound/k054539.cpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/devices/sound/k054539.cpp b/src/devices/sound/k054539.cpp
index b7108e925f8..3bcadb703b7 100644
--- a/src/devices/sound/k054539.cpp
+++ b/src/devices/sound/k054539.cpp
@@ -103,7 +103,7 @@ void k054539_device::keyoff(int channel)
regs[0x22c] &= ~(1 << channel);
}
-void k054539_device::sound_stream_update(sound_stream &stream, std::vector<read_stream_view> const &inputs, std::vector<write_stream_view> &outputs)
+void k054539_device::sound_stream_update(sound_stream &stream)
{
static constexpr double VOL_CAP = 1.80;
@@ -115,13 +115,9 @@ void k054539_device::sound_stream_update(sound_stream &stream, std::vector<read_
int16_t *rbase = (int16_t *)&ram[0];
if(!(regs[0x22f] & 1))
- {
- outputs[0].fill(0);
- outputs[1].fill(0);
return;
- }
- for(int sample = 0; sample != outputs[0].samples(); sample++) {
+ for(int sample = 0; sample != stream.samples(); sample++) {
double lval, rval;
if(!(flags & DISABLE_REVERB))
lval = rval = rbase[reverb_pos];
@@ -299,8 +295,8 @@ void k054539_device::sound_stream_update(sound_stream &stream, std::vector<read_
}
}
reverb_pos = (reverb_pos + 1) & 0x1fff;
- outputs[0].put_int(sample, lval, 32768);
- outputs[1].put_int(sample, rval, 32768);
+ stream.put_int(0, sample, lval, 32768);
+ stream.put_int(1, sample, rval, 32768);
}
}