cellRec: use constant for block samples

This commit is contained in:
Megamouse 2023-11-13 22:03:23 +01:00
parent 70c35642a4
commit 64529cefa5

View File

@ -610,7 +610,7 @@ void rec_info::start_video_provider()
if (use_external_audio && audio_input_buffer) if (use_external_audio && audio_input_buffer)
{ {
// 2-channel interleaved (left-right), 256 samples, float // 2-channel interleaved (left-right), 256 samples, float
std::array<f32, 2 * 256> audio_data{}; std::array<f32, 2 * CELL_REC_AUDIO_BLOCK_SAMPLES> audio_data{};
std::memcpy(audio_data.data(), audio_input_buffer.get_ptr(), audio_data.size() * sizeof(f32)); std::memcpy(audio_data.data(), audio_input_buffer.get_ptr(), audio_data.size() * sizeof(f32));
// TODO: mix audio with param.audio_input_mix_vol // TODO: mix audio with param.audio_input_mix_vol