diff options
| author | Pierre Bourdon <delroth@gmail.com> | 2014-08-03 21:25:24 -0700 |
|---|---|---|
| committer | Pierre Bourdon <delroth@gmail.com> | 2014-08-03 21:25:24 -0700 |
| commit | 87e7c1ee46d3fe1472da40735365da25cab9272e (patch) | |
| tree | 51d294213911d7f1a11399215c326615e41d5f8d /Source/Core/AudioCommon/DSoundStream.cpp | |
| parent | 15920d0f10f143a49b9861bff3d4e7b11913e74f (diff) | |
| parent | 17e79a966a4051c089e03b25de9640a55f39f01c (diff) | |
Merge pull request #724 from lioncash/mem_fn
AudioCommon: Get rid of some unnecessary mem_fn calls
Diffstat (limited to 'Source/Core/AudioCommon/DSoundStream.cpp')
| -rw-r--r-- | Source/Core/AudioCommon/DSoundStream.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Source/Core/AudioCommon/DSoundStream.cpp b/Source/Core/AudioCommon/DSoundStream.cpp index df96a9551f..d9c81db6b9 100644 --- a/Source/Core/AudioCommon/DSoundStream.cpp +++ b/Source/Core/AudioCommon/DSoundStream.cpp @@ -3,9 +3,7 @@ // Refer to the license.txt file included. #include <cmath> -#include <functional> - -#include <windows.h> +#include <Windows.h> #include "AudioCommon/AudioCommon.h" #include "AudioCommon/DSoundStream.h" @@ -123,7 +121,7 @@ bool DSound::Start() dsBuffer->Lock(0, bufferSize, (void* *)&p1, &num1, 0, 0, DSBLOCK_ENTIREBUFFER); memset(p1, 0, num1); dsBuffer->Unlock(p1, num1, 0, 0); - thread = std::thread(std::mem_fn(&DSound::SoundLoop), this); + thread = std::thread(&DSound::SoundLoop, this); return true; } |
