summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/sound/rp2c33_snd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/sound/rp2c33_snd.cpp')
-rw-r--r--src/devices/sound/rp2c33_snd.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/devices/sound/rp2c33_snd.cpp b/src/devices/sound/rp2c33_snd.cpp
index d0701041a6b..43cfbf46049 100644
--- a/src/devices/sound/rp2c33_snd.cpp
+++ b/src/devices/sound/rp2c33_snd.cpp
@@ -7,7 +7,7 @@
Based on:
- NSFplay github code by Brad Smith/Brezza
- Information from NESDev wiki
- (https://wiki.nesdev.com/w/index.php/FDS_audio)
+ (https://www.nesdev.org/wiki/FDS_audio)
TODO:
- verify register behaviors
@@ -221,9 +221,9 @@ void rp2c33_sound_device::write(offs_t offset, u8 data)
// sound_stream_update - handle a stream update
//-------------------------------------------------
-void rp2c33_sound_device::sound_stream_update(sound_stream &stream, std::vector<read_stream_view> const &inputs, std::vector<write_stream_view> &outputs)
+void rp2c33_sound_device::sound_stream_update(sound_stream &stream)
{
- for (int i = 0; i < outputs[0].samples(); i++)
+ for (int i = 0; i < stream.samples(); i++)
{
m_output = 0;
if (!m_env_halt && !m_wave_halt)
@@ -234,7 +234,7 @@ void rp2c33_sound_device::sound_stream_update(sound_stream &stream, std::vector<
exec_mod();
exec_wave();
/* Update the buffers */
- outputs[0].put_int(i, m_output * m_mvol_table[m_mvol], 32768);
+ stream.put_int(0, i, m_output * m_mvol_table[m_mvol], 32768);
}
}