Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #724 from lioncash/mem_fn
AudioCommon: Get rid of some unnecessary mem_fn calls
  • Loading branch information
delroth committed Aug 4, 2014
2 parents 15920d0 + 17e79a9 commit 87e7c1e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions Source/Core/AudioCommon/DSoundStream.cpp
Expand Up @@ -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"
Expand Down Expand Up @@ -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;
}

Expand Down
2 changes: 1 addition & 1 deletion Source/Core/AudioCommon/OpenALStream.cpp
Expand Up @@ -38,7 +38,7 @@ bool OpenALStream::Start()
//period_size_in_millisec = 1000 / refresh;

alcMakeContextCurrent(pContext);
thread = std::thread(std::mem_fn(&OpenALStream::SoundLoop), this);
thread = std::thread(&OpenALStream::SoundLoop, this);
bReturn = true;
}
else
Expand Down

0 comments on commit 87e7c1e

Please sign in to comment.