mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 05:40:01 -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,7 @@
|
||||
// Official SVN repository and contact information can be found at
|
||||
// http://code.google.com/p/dolphin-emu/
|
||||
|
||||
#include <functional>
|
||||
#include <string.h>
|
||||
|
||||
#include "AOSoundStream.h"
|
||||
@ -54,18 +55,13 @@ void AOSound::SoundLoop()
|
||||
}
|
||||
}
|
||||
|
||||
void soundThread(AOSound *aosound)
|
||||
{
|
||||
aosound->SoundLoop();
|
||||
}
|
||||
|
||||
bool AOSound::Start()
|
||||
{
|
||||
memset(realtimeBuffer, 0, sizeof(realtimeBuffer));
|
||||
|
||||
soundSyncEvent.Init();
|
||||
|
||||
thread = std::thread(soundThread, this);
|
||||
thread = std::thread(std::mem_fun(&AOSound::SoundLoop), this);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user