mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 04:08:55 +00: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:
parent
67a4ac0bf6
commit
1de40588ac
20 changed files with 38 additions and 73 deletions
|
@ -15,6 +15,8 @@
|
|||
// Official SVN repository and contact information can be found at
|
||||
// http://code.google.com/p/dolphin-emu/
|
||||
|
||||
#include <functional>
|
||||
|
||||
#include "Common.h"
|
||||
#include "Thread.h"
|
||||
|
||||
|
@ -35,15 +37,10 @@ PulseAudio::~PulseAudio()
|
|||
delete [] mix_buffer;
|
||||
}
|
||||
|
||||
void PulseAudio::ThreadTrampoline(PulseAudio* args)
|
||||
{
|
||||
args->SoundLoop();
|
||||
}
|
||||
|
||||
bool PulseAudio::Start()
|
||||
{
|
||||
thread_running = true;
|
||||
thread = std::thread(ThreadTrampoline, this);
|
||||
thread = std::thread(std::mem_fun(&PulseAudio::SoundLoop), this);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue