mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-10-24 07:28:29 -04:00
[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:
1 parent
0f41447d09
commit
cf75cfc012
7 files changed
+189
-147
No files matched your search
@@ -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))
|
||||
{}
|
||||
|
||||
Reference in new issue
Block a user