audio: allow to choose channel layouts

This commit is contained in:
Megamouse 2024-03-26 19:39:37 +01:00
parent a6fa091ab3
commit bbb4c109d7
22 changed files with 343 additions and 99 deletions

View file

@ -752,7 +752,7 @@ void rec_info::start_video_provider()
if (sample.channels > channels)
{
// Downmix channels
AudioBackend::downmix(CELL_REC_AUDIO_BLOCK_SAMPLES * sample.channels, sample.channels, channels, src, reinterpret_cast<f32*>(dst_buffer.block.data()));
AudioBackend::downmix(CELL_REC_AUDIO_BLOCK_SAMPLES * sample.channels, sample.channels, audio_channel_layout::stereo, src, reinterpret_cast<f32*>(dst_buffer.block.data()));
}
else
{