mirror of
https://github.com/rwengine/openrw.git
synced 2024-09-04 01:29:45 +02:00
Rename thread in SoundBufferStreamed
This commit is contained in:
parent
9b07e0492f
commit
cc14614e7e
@ -67,7 +67,7 @@ void SoundBufferStreamed::play() {
|
|||||||
std::this_thread::sleep_for(kTickFreqMs);
|
std::this_thread::sleep_for(kTickFreqMs);
|
||||||
|
|
||||||
// Not we should be able start thread
|
// Not we should be able start thread
|
||||||
loadingThread = std::async(std::launch::async,
|
bufferingThread = std::async(std::launch::async,
|
||||||
&SoundBufferStreamed::updateBuffers, this);
|
&SoundBufferStreamed::updateBuffers, this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -25,7 +25,7 @@ private:
|
|||||||
void updateBuffers();
|
void updateBuffers();
|
||||||
unsigned int streamedData = 0;
|
unsigned int streamedData = 0;
|
||||||
std::array<ALuint, kNrBuffersStreaming> buffers;
|
std::array<ALuint, kNrBuffersStreaming> buffers;
|
||||||
std::future<void> loadingThread;
|
std::future<void> bufferingThread;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user