From 80cc5cfbfdd14801ec6b93f87496a0a388eba524 Mon Sep 17 00:00:00 2001 From: Adam Wulkiewicz Date: Tue, 13 Dec 2022 16:19:44 +0100 Subject: [PATCH] [BH-1566] Fix flac playback Increase stack size because internally drflac_open() uses cache which by default has 4kB. --- products/BellHybrid/services/audio/ServiceAudio.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/products/BellHybrid/services/audio/ServiceAudio.cpp b/products/BellHybrid/services/audio/ServiceAudio.cpp index 6e311b58919804e6ec8afd16f70bfbaf0aa1e693..bf73b1a6e1c2a2a79b05d54a987f66edcf2c5bb9 100644 --- a/products/BellHybrid/services/audio/ServiceAudio.cpp +++ b/products/BellHybrid/services/audio/ServiceAudio.cpp @@ -10,7 +10,9 @@ namespace { - constexpr auto stackSize = 1024 * 4; + // 4kB is too small because internally drflac_open() uses cache which by default has 4kB. + // Alternatively smaller DR_FLAC_BUFFER_SIZE could be defined. + constexpr auto stackSize = 1024 * 8; constexpr auto defaultVolume = "5"; constexpr auto defaultSnoozeVolume = "4"; constexpr auto defaultBedtimeVolume = "6";