[EGD-5973] Reduce audio stack usage

Verify stack usage of:
 - ServiceAudio
 - application music player
 - decoder worker
Change if possible to a realistic value keeping a 30% margin.
Stack usage reduction is limited due to an extensive stack usage of
every call to the filesystem, which uses around 2 kB of stack.

Signed-off-by: Marcin Smoczyński <smoczynski.marcin@gmail.com>
This commit is contained in:
Marcin Smoczyński committed 2021-03-19 09:55:06 +01:00
1 parent 0f41447d09
commit cf75cfc012
7 files changed
+189 -147

No files matched your search

+1 -1
View File
@@ -5,7 +5,7 @@
#include "Audio/decoder/Decoder.hpp"
audio::DecoderWorker::DecoderWorker(Stream *audioStreamOut, Decoder *decoder, EndOfFileCallback endOfFileCallback)
: sys::Worker(DecoderWorker::workerName, DecoderWorker::workerPriority), audioStreamOut(audioStreamOut),
: sys::Worker(DecoderWorker::workerName, DecoderWorker::workerPriority, stackDepth), audioStreamOut(audioStreamOut),
decoder(decoder), endOfFileCallback(endOfFileCallback),
bufferSize(audioStreamOut->getBlockSize() / sizeof(BufferInternalType))
{}