Sounds are async again

This commit is contained in:
Johannes Wendel
2019-10-28 16:44:08 +01:00
parent 8791f85857
commit 31738f515b

View File

@@ -29,8 +29,7 @@ Sound::Sound(std::shared_ptr<SoundBoardPinController> 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()