From cc14614e7e2c3d14ff27835273caa0f0f4a0f4e2 Mon Sep 17 00:00:00 2001 From: Filip Gawin Date: Sat, 18 May 2019 23:00:54 +0200 Subject: [PATCH] Rename thread in SoundBufferStreamed --- rwengine/src/audio/SoundBufferStreamed.cpp | 2 +- rwengine/src/audio/SoundBufferStreamed.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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