Unpin decoder task

custom
jacqueline 2 years ago
parent cd44e0daa1
commit 0802b4e528
  1. 3
      src/audio/audio_decoder.cpp

@ -79,8 +79,7 @@ auto Timer::AddSamples(std::size_t samples) -> void {
auto Decoder::Start(std::shared_ptr<IAudioSource> source, auto Decoder::Start(std::shared_ptr<IAudioSource> source,
std::shared_ptr<SampleConverter> sink) -> Decoder* { std::shared_ptr<SampleConverter> sink) -> Decoder* {
Decoder* task = new Decoder(source, sink); Decoder* task = new Decoder(source, sink);
tasks::StartPersistent<tasks::Type::kAudioDecoder>(1, tasks::StartPersistent<tasks::Type::kAudioDecoder>([=]() { task->Main(); });
[=]() { task->Main(); });
return task; return task;
} }

Loading…
Cancel
Save