| 793 | } |
| 794 | |
| 795 | bool Xaudio2Implementation::startUpdateThread() |
| 796 | { |
| 797 | if (m_updateThread.joinable()) |
| 798 | { |
| 799 | log::error("AudioEngine : update thread already running"); |
| 800 | return false; |
| 801 | } |
| 802 | m_updateRunning = true; |
| 803 | m_updateThread = std::thread(&Xaudio2Implementation::update, this); |
| 804 | return true; |
| 805 | } |
| 806 | |
| 807 | void Xaudio2Implementation::stopUpdateThread() |
| 808 | { |