mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 06:39:46 -06:00
Replace use of the deprecated mem_fun function with mem_fn.
This commit is contained in:
@ -50,7 +50,7 @@ bool AOSound::Start()
|
||||
{
|
||||
memset(realtimeBuffer, 0, sizeof(realtimeBuffer));
|
||||
|
||||
thread = std::thread(std::mem_fun(&AOSound::SoundLoop), this);
|
||||
thread = std::thread(std::mem_fn(&AOSound::SoundLoop), this);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -24,7 +24,7 @@ AlsaSound::~AlsaSound()
|
||||
|
||||
bool AlsaSound::Start()
|
||||
{
|
||||
thread = std::thread(std::mem_fun(&AlsaSound::SoundLoop), this);
|
||||
thread = std::thread(std::mem_fn(&AlsaSound::SoundLoop), this);
|
||||
thread_data = 0;
|
||||
return true;
|
||||
}
|
||||
|
@ -121,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_fun(&DSound::SoundLoop), this);
|
||||
thread = std::thread(std::mem_fn(&DSound::SoundLoop), this);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -36,7 +36,7 @@ bool OpenALStream::Start()
|
||||
//period_size_in_millisec = 1000 / refresh;
|
||||
|
||||
alcMakeContextCurrent(pContext);
|
||||
thread = std::thread(std::mem_fun(&OpenALStream::SoundLoop), this);
|
||||
thread = std::thread(std::mem_fn(&OpenALStream::SoundLoop), this);
|
||||
bReturn = true;
|
||||
}
|
||||
else
|
||||
|
@ -24,7 +24,7 @@ PulseAudio::PulseAudio(CMixer *mixer)
|
||||
bool PulseAudio::Start()
|
||||
{
|
||||
m_run_thread = true;
|
||||
m_thread = std::thread(std::mem_fun(&PulseAudio::SoundLoop), this);
|
||||
m_thread = std::thread(std::mem_fn(&PulseAudio::SoundLoop), this);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user