~aleteoryx/muditaos

80cc5cfbfdd14801ec6b93f87496a0a388eba524 — Adam Wulkiewicz 3 years ago c64382a
[BH-1566] Fix flac playback

Increase stack size because internally drflac_open()
uses cache which by default has 4kB.
1 files changed, 3 insertions(+), 1 deletions(-)

M products/BellHybrid/services/audio/ServiceAudio.cpp
M products/BellHybrid/services/audio/ServiceAudio.cpp => products/BellHybrid/services/audio/ServiceAudio.cpp +3 -1
@@ 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";