diff --git a/rpcs3/Emu/Cell/Modules/cellAudio.cpp b/rpcs3/Emu/Cell/Modules/cellAudio.cpp index 379c17f112..caad402194 100644 --- a/rpcs3/Emu/Cell/Modules/cellAudio.cpp +++ b/rpcs3/Emu/Cell/Modules/cellAudio.cpp @@ -301,7 +301,7 @@ void audio_ringbuffer::commit_data(f32* buf, u32 sample_cnt) if (g_recording_mode != recording_mode::stopped) { utils::video_provider& provider = g_fxo->get(); - provider.present_samples(reinterpret_cast(buf), sample_cnt, cfg.audio_channels); + provider.present_samples(reinterpret_cast(buf), sample_cnt, cfg.audio_channels); } // Downmix if necessary diff --git a/rpcs3/Emu/Cell/lv2/sys_rsxaudio.cpp b/rpcs3/Emu/Cell/lv2/sys_rsxaudio.cpp index 9fa3a890a8..2ba15b1146 100644 --- a/rpcs3/Emu/Cell/lv2/sys_rsxaudio.cpp +++ b/rpcs3/Emu/Cell/lv2/sys_rsxaudio.cpp @@ -1858,7 +1858,7 @@ u32 rsxaudio_backend_thread::write_data_callback(u32 bytes, void* buf) if (g_recording_mode != recording_mode::stopped) { utils::video_provider& provider = g_fxo->get(); - provider.present_samples(reinterpret_cast(callback_tmp_buf.data()), sample_cnt / cb_cfg.input_ch_cnt, cb_cfg.input_ch_cnt); + provider.present_samples(reinterpret_cast(callback_tmp_buf.data()), sample_cnt / cb_cfg.input_ch_cnt, cb_cfg.input_ch_cnt); } // Downmix if necessary diff --git a/rpcs3/util/video_provider.cpp b/rpcs3/util/video_provider.cpp index 70888447f4..82f133b91e 100644 --- a/rpcs3/util/video_provider.cpp +++ b/rpcs3/util/video_provider.cpp @@ -162,7 +162,7 @@ namespace utils } } - void video_provider::present_samples(u8* buf, u32 sample_count, u16 channels) + void video_provider::present_samples(const u8* buf, u32 sample_count, u16 channels) { if (!buf || !sample_count || !channels || !m_active) { diff --git a/rpcs3/util/video_provider.h b/rpcs3/util/video_provider.h index 0d2c29edfe..e21b5185ee 100644 --- a/rpcs3/util/video_provider.h +++ b/rpcs3/util/video_provider.h @@ -23,7 +23,7 @@ namespace utils bool can_consume_frame(); void present_frame(std::vector& data, u32 pitch, u32 width, u32 height, bool is_bgra); - void present_samples(u8* buf, u32 sample_count, u16 channels); + void present_samples(const u8* buf, u32 sample_count, u16 channels); private: recording_mode check_mode();