From 31738f515bcee4a388fbd645a1e2c4f1478fff54 Mon Sep 17 00:00:00 2001 From: Johannes Wendel Date: Mon, 28 Oct 2019 16:44:08 +0100 Subject: [PATCH] Sounds are async again --- FlippR-Driver/src/output/items/detail/Sound.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/FlippR-Driver/src/output/items/detail/Sound.cpp b/FlippR-Driver/src/output/items/detail/Sound.cpp index 16a5c91..6f6f2a2 100644 --- a/FlippR-Driver/src/output/items/detail/Sound.cpp +++ b/FlippR-Driver/src/output/items/detail/Sound.cpp @@ -29,8 +29,7 @@ Sound::Sound(std::shared_ptr pin_controller, const uint void Sound::play() { CLOG(INFO, OUTPUT_LOGGER) << "Play Sound " << id << " " << name; - //this->play_task = std::async(std::launch::async, &Sound::playTask, this); - this->playTask(); + this->play_task = std::async(std::launch::async, &Sound::playTask, this); } void Sound::playTask()