diff --git a/rwengine/src/audio/SoundBufferStreamed.cpp b/rwengine/src/audio/SoundBufferStreamed.cpp index e34c9a23..70823110 100644 --- a/rwengine/src/audio/SoundBufferStreamed.cpp +++ b/rwengine/src/audio/SoundBufferStreamed.cpp @@ -67,7 +67,7 @@ void SoundBufferStreamed::play() { std::this_thread::sleep_for(kTickFreqMs); // Not we should be able start thread - loadingThread = std::async(std::launch::async, + bufferingThread = std::async(std::launch::async, &SoundBufferStreamed::updateBuffers, this); } diff --git a/rwengine/src/audio/SoundBufferStreamed.hpp b/rwengine/src/audio/SoundBufferStreamed.hpp index e48bd79a..95876f37 100644 --- a/rwengine/src/audio/SoundBufferStreamed.hpp +++ b/rwengine/src/audio/SoundBufferStreamed.hpp @@ -25,7 +25,7 @@ private: void updateBuffers(); unsigned int streamedData = 0; std::array buffers; - std::future loadingThread; + std::future bufferingThread; }; #endif