Sounds are async again

This commit is contained in:
Johannes Wendel
2019-10-28 16:44:08 +01:00
parent 5032527ddc
commit 228ab897ea

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()