diff options
| author | jacqueline <me@jacqueline.id.au> | 2024-02-07 21:29:28 +1100 |
|---|---|---|
| committer | jacqueline <me@jacqueline.id.au> | 2024-02-07 21:38:05 +1100 |
| commit | c1b03c151edc12f9ec46e63ae6fd2744dc2f59b5 (patch) | |
| tree | 62b5aa4c6f125d79c5b99865d247bbef97294c4e /src/audio | |
| parent | 18345a1c2c357d194c9eda8bf2103db9965d3996 (diff) | |
| download | tangara-fw-c1b03c151edc12f9ec46e63ae6fd2744dc2f59b5.tar.gz | |
put opus' allocations into internal ram
it's a pretty chonky codec, but this seems like the best way to tame its
performance.
Diffstat (limited to 'src/audio')
| -rw-r--r-- | src/audio/audio_fsm.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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( |
