name all audio threads (that I know how to) for debugging, as suggested in response to revision d00b719966
.
This commit is contained in:
parent
ba545ec1e9
commit
6f1b2d7748
|
@ -25,6 +25,8 @@
|
||||||
|
|
||||||
void AOSound::SoundLoop()
|
void AOSound::SoundLoop()
|
||||||
{
|
{
|
||||||
|
Common::SetCurrentThreadName("Audio thread - ao");
|
||||||
|
|
||||||
uint_32 numBytesToRender = 256;
|
uint_32 numBytesToRender = 256;
|
||||||
ao_initialize();
|
ao_initialize();
|
||||||
default_driver = ao_default_driver_id();
|
default_driver = ao_default_driver_id();
|
||||||
|
|
|
@ -60,6 +60,7 @@ void AlsaSound::SoundLoop()
|
||||||
thread_data = 2;
|
thread_data = 2;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Common::SetCurrentThreadName("Audio thread - alsa");
|
||||||
while (!thread_data)
|
while (!thread_data)
|
||||||
{
|
{
|
||||||
m_mixer->Mix(reinterpret_cast<short *>(mix_buffer), frames_to_deliver);
|
m_mixer->Mix(reinterpret_cast<short *>(mix_buffer), frames_to_deliver);
|
||||||
|
|
|
@ -96,7 +96,7 @@ bool DSound::WriteDataToBuffer(DWORD dwOffset, // Our own write
|
||||||
// The audio thread.
|
// The audio thread.
|
||||||
void DSound::SoundLoop()
|
void DSound::SoundLoop()
|
||||||
{
|
{
|
||||||
Common::SetCurrentThreadName("Audio thread");
|
Common::SetCurrentThreadName("Audio thread - dsound");
|
||||||
|
|
||||||
currentPos = 0;
|
currentPos = 0;
|
||||||
lastPos = 0;
|
lastPos = 0;
|
||||||
|
@ -132,7 +132,7 @@ bool DSound::Start()
|
||||||
|
|
||||||
DWORD num1;
|
DWORD num1;
|
||||||
short* p1;
|
short* p1;
|
||||||
dsBuffer->Lock(0, bufferSize, (void* *)&p1, &num1, 0, 0, 0);
|
dsBuffer->Lock(0, bufferSize, (void* *)&p1, &num1, 0, 0, DSBLOCK_ENTIREBUFFER);
|
||||||
memset(p1, 0, num1);
|
memset(p1, 0, num1);
|
||||||
dsBuffer->Unlock(p1, num1, 0, 0);
|
dsBuffer->Unlock(p1, num1, 0, 0);
|
||||||
thread = std::thread(std::mem_fun(&DSound::SoundLoop), this);
|
thread = std::thread(std::mem_fun(&DSound::SoundLoop), this);
|
||||||
|
|
|
@ -121,6 +121,8 @@ void OpenALStream::Clear(bool mute)
|
||||||
|
|
||||||
void OpenALStream::SoundLoop()
|
void OpenALStream::SoundLoop()
|
||||||
{
|
{
|
||||||
|
Common::SetCurrentThreadName("Audio thread - openal");
|
||||||
|
|
||||||
ALenum err;
|
ALenum err;
|
||||||
u32 ulFrequency = m_mixer->GetSampleRate();
|
u32 ulFrequency = m_mixer->GetSampleRate();
|
||||||
|
|
||||||
|
|
|
@ -58,6 +58,8 @@ void PulseAudio::Update()
|
||||||
// Called on audio thread.
|
// Called on audio thread.
|
||||||
void PulseAudio::SoundLoop()
|
void PulseAudio::SoundLoop()
|
||||||
{
|
{
|
||||||
|
Common::SetCurrentThreadName("Audio thread - pulse");
|
||||||
|
|
||||||
thread_running = PulseInit();
|
thread_running = PulseInit();
|
||||||
|
|
||||||
while (thread_running)
|
while (thread_running)
|
||||||
|
|
Loading…
Reference in New Issue