mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
Forgot about some Linux files using Common::Thread
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6934 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -35,24 +35,22 @@ PulseAudio::~PulseAudio()
|
||||
delete [] mix_buffer;
|
||||
}
|
||||
|
||||
void *PulseAudio::ThreadTrampoline(void *args)
|
||||
void PulseAudio::ThreadTrampoline(PulseAudio* args)
|
||||
{
|
||||
((PulseAudio *)args)->SoundLoop();
|
||||
return NULL;
|
||||
args->SoundLoop();
|
||||
}
|
||||
|
||||
bool PulseAudio::Start()
|
||||
{
|
||||
thread_running = true;
|
||||
thread = new Common::Thread(&ThreadTrampoline, this);
|
||||
thread = std::thread(ThreadTrampoline, this);
|
||||
return true;
|
||||
}
|
||||
|
||||
void PulseAudio::Stop()
|
||||
{
|
||||
thread_running = false;
|
||||
delete thread;
|
||||
thread = NULL;
|
||||
thread.join();
|
||||
}
|
||||
|
||||
void PulseAudio::Update()
|
||||
|
Reference in New Issue
Block a user