From 0032896251d8ddc6c2775495445da8fceffba98e Mon Sep 17 00:00:00 2001 From: jacqueline Date: Tue, 5 Sep 2023 09:51:10 +1000 Subject: Move UI task to priority 0 during playback Also other misc task cleanup --- src/audio/audio_decoder.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/audio/audio_decoder.cpp') diff --git a/src/audio/audio_decoder.cpp b/src/audio/audio_decoder.cpp index f9f76387..f4868daa 100644 --- a/src/audio/audio_decoder.cpp +++ b/src/audio/audio_decoder.cpp @@ -46,7 +46,7 @@ namespace audio { static const char* kTag = "audio_dec"; -static constexpr std::size_t kCodecBufferLength = 240 * 4 * 4; +static constexpr std::size_t kCodecBufferLength = 240 * 4 * 16; Timer::Timer(const codecs::ICodec::OutputFormat& format) : current_seconds_(0), @@ -79,7 +79,8 @@ auto Timer::AddSamples(std::size_t samples) -> void { auto Decoder::Start(std::shared_ptr source, std::shared_ptr sink) -> Decoder* { Decoder* task = new Decoder(source, sink); - tasks::StartPersistent(1, [=]() { task->Main(); }); + tasks::StartPersistent(1, + [=]() { task->Main(); }); return task; } -- cgit v1.2.3