diff options
Diffstat (limited to 'Source/Core/AudioCommon/Src/OpenALStream.cpp')
| -rw-r--r-- | Source/Core/AudioCommon/Src/OpenALStream.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/Source/Core/AudioCommon/Src/OpenALStream.cpp b/Source/Core/AudioCommon/Src/OpenALStream.cpp index 908f1c0099..5d46763613 100644 --- a/Source/Core/AudioCommon/Src/OpenALStream.cpp +++ b/Source/Core/AudioCommon/Src/OpenALStream.cpp @@ -15,6 +15,8 @@ // Official SVN repository and contact information can be found at // http://code.google.com/p/dolphin-emu/ +#include <functional> + #include "aldlist.h" #include "OpenALStream.h" @@ -44,7 +46,7 @@ bool OpenALStream::Start() if (pContext) { alcMakeContextCurrent(pContext); - thread = std::thread(OpenALStream::ThreadFunc, this); + thread = std::thread(std::mem_fun(&OpenALStream::SoundLoop), this); bReturn = true; } else @@ -121,11 +123,6 @@ void OpenALStream::Clear(bool mute) } } -void OpenALStream::ThreadFunc(OpenALStream* alstream) -{ - alstream->SoundLoop(); -} - void OpenALStream::SoundLoop() { ALenum err; |
