mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-02 13:01:27 +12:00
Use const for present_samples buf argument
This commit is contained in:
parent
73a6141f3f
commit
501643c10a
4 changed files with 4 additions and 4 deletions
|
@ -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<utils::video_provider>();
|
||||
provider.present_samples(reinterpret_cast<u8*>(buf), sample_cnt, cfg.audio_channels);
|
||||
provider.present_samples(reinterpret_cast<const u8*>(buf), sample_cnt, cfg.audio_channels);
|
||||
}
|
||||
|
||||
// Downmix if necessary
|
||||
|
|
|
@ -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<utils::video_provider>();
|
||||
provider.present_samples(reinterpret_cast<u8*>(callback_tmp_buf.data()), sample_cnt / cb_cfg.input_ch_cnt, cb_cfg.input_ch_cnt);
|
||||
provider.present_samples(reinterpret_cast<const u8*>(callback_tmp_buf.data()), sample_cnt / cb_cfg.input_ch_cnt, cb_cfg.input_ch_cnt);
|
||||
}
|
||||
|
||||
// Downmix if necessary
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -23,7 +23,7 @@ namespace utils
|
|||
bool can_consume_frame();
|
||||
void present_frame(std::vector<u8>& 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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue