diff options
Diffstat (limited to 'src/devices/sound/scsp.cpp')
-rw-r--r-- | src/devices/sound/scsp.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/devices/sound/scsp.cpp b/src/devices/sound/scsp.cpp index 97256bfe01a..143be37ca40 100644 --- a/src/devices/sound/scsp.cpp +++ b/src/devices/sound/scsp.cpp @@ -212,7 +212,7 @@ void scsp_device::device_start() m_main_irq_cb.resolve_safe(); // Stereo output with EXTS0,1 Input (External digital audio output) - m_stream = machine().sound().stream_alloc(*this, 2, 2, clock() / 512); + m_stream = stream_alloc_legacy(2, 2, clock() / 512); for (int slot = 0; slot < 32; slot++) { @@ -297,8 +297,8 @@ void scsp_device::device_post_load() for (int slot = 0; slot < 32; slot++) Compute_LFO(&m_Slots[slot]); - m_stream->set_output_gain(0, MVOL() / 15.0); - m_stream->set_output_gain(1, MVOL() / 15.0); + set_output_gain(0, MVOL() / 15.0); + set_output_gain(1, MVOL() / 15.0); } //------------------------------------------------- @@ -317,10 +317,10 @@ void scsp_device::rom_bank_updated() } //------------------------------------------------- -// sound_stream_update - handle a stream update +// sound_stream_update_legacy - handle a stream update //------------------------------------------------- -void scsp_device::sound_stream_update(sound_stream &stream, stream_sample_t **inputs, stream_sample_t **outputs, int samples) +void scsp_device::sound_stream_update_legacy(sound_stream &stream, stream_sample_t const * const *inputs, stream_sample_t * const *outputs, int samples) { m_exts0 = inputs[0]; m_exts1 = inputs[1]; @@ -738,8 +738,8 @@ void scsp_device::UpdateReg(int reg) switch (reg & 0x3f) { case 0x0: - m_stream->set_output_gain(0, MVOL() / 15.0); - m_stream->set_output_gain(1, MVOL() / 15.0); + set_output_gain(0, MVOL() / 15.0); + set_output_gain(1, MVOL() / 15.0); break; case 0x2: case 0x3: @@ -1279,7 +1279,7 @@ inline s32 scsp_device::UpdateSlot(SCSP_SLOT *slot) void scsp_device::DoMasterSamples(int nsamples) { stream_sample_t *bufr,*bufl; - stream_sample_t *exts[2]; + stream_sample_t const *exts[2]; bufr = m_bufferr; bufl = m_bufferl; |