mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-06 23:15:18 +00:00
recording: Implement audio recording for rsx audio
This commit is contained in:
parent
44585b98cc
commit
4a4f537ee8
4 changed files with 54 additions and 5 deletions
|
|
@ -295,7 +295,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, static_cast<u32>(cfg.audio_channels));
|
||||
provider.present_samples(reinterpret_cast<u8*>(buf), sample_cnt, cfg.audio_channels);
|
||||
}
|
||||
|
||||
// Downmix if necessary
|
||||
|
|
@ -1004,7 +1004,7 @@ void cell_audio_thread::operator()()
|
|||
break;
|
||||
|
||||
default:
|
||||
fmt::throw_exception("Unsupported channel count in cell_audio_config: %d", static_cast<u32>(cfg.audio_channels));
|
||||
fmt::throw_exception("Unsupported channel count in cell_audio_config: %d", cfg.audio_channels);
|
||||
}
|
||||
|
||||
// Enqueue
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue