From c1b03c151edc12f9ec46e63ae6fd2744dc2f59b5 Mon Sep 17 00:00:00 2001 From: jacqueline Date: Wed, 7 Feb 2024 21:29:28 +1100 Subject: put opus' allocations into internal ram it's a pretty chonky codec, but this seems like the best way to tame its performance. --- src/audio/audio_fsm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/audio/audio_fsm.cpp b/src/audio/audio_fsm.cpp index 31d006fe..54ffa51d 100644 --- a/src/audio/audio_fsm.cpp +++ b/src/audio/audio_fsm.cpp @@ -162,7 +162,7 @@ void Uninitialised::react(const system_fsm::BootComplete& ev) { sServices = ev.services; constexpr size_t kDrainBufferSize = - drivers::kI2SBufferLengthFrames * sizeof(sample::Sample) * 2 * 8; + drivers::kI2SBufferLengthFrames * sizeof(sample::Sample) * 8; ESP_LOGI(kTag, "allocating drain buffer, size %u KiB", kDrainBufferSize / 1024); StreamBufferHandle_t stream = xStreamBufferCreateWithCaps( -- cgit v1.2.3