mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
Eliminate some trampoline functions.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7015 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user