diff options
| author | ayumi <ayumi@noreply.codeberg.org> | 2025-04-06 14:56:47 +0200 |
|---|---|---|
| committer | cooljqln <cooljqln@noreply.codeberg.org> | 2025-04-14 01:45:13 +0000 |
| commit | b87e991a1c2efd716974130a22f589fe1697a6fe (patch) | |
| tree | ff0a67c37a3fa2527b7bfec458885ab1838d5096 | |
| parent | 4890c7915c9684f46209c2179f2fdcab7fa3d778 (diff) | |
| download | tangara-fw-b87e991a1c2efd716974130a22f589fe1697a6fe.tar.gz | |
Allow the WavPack’s output buffer to be optionally allocated in IRAM
The decoder does use `memset` on the buffer, but according to Espressif that should be fine.
See-Also: https://docs.espressif.com/projects/esp-idf/en/stable/esp32/api-reference/system/mem_alloc.html#bit-accessible-memory
See-Also: https://esp32.com/viewtopic.php?t=1730#p8056
| -rw-r--r-- | src/codecs/wavpack.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/codecs/wavpack.cpp b/src/codecs/wavpack.cpp index fa168d32..21865785 100644 --- a/src/codecs/wavpack.cpp +++ b/src/codecs/wavpack.cpp @@ -45,7 +45,7 @@ WavPackDecoder::WavPackDecoder() : input_(), buf_() { buf_ = static_cast<int32_t*>( heap_caps_malloc( kBufSize * sizeof(int32_t), - MALLOC_CAP_INTERNAL | MALLOC_CAP_CACHE_ALIGNED + MALLOC_CAP_INTERNAL | MALLOC_CAP_32BIT )); } |
