mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
name all audio threads (that I know how to) for debugging, as suggested in response to revision d00b719966
.
This commit is contained in:
@ -96,7 +96,7 @@ bool DSound::WriteDataToBuffer(DWORD dwOffset, // Our own write
|
||||
// The audio thread.
|
||||
void DSound::SoundLoop()
|
||||
{
|
||||
Common::SetCurrentThreadName("Audio thread");
|
||||
Common::SetCurrentThreadName("Audio thread - dsound");
|
||||
|
||||
currentPos = 0;
|
||||
lastPos = 0;
|
||||
@ -132,7 +132,7 @@ bool DSound::Start()
|
||||
|
||||
DWORD num1;
|
||||
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);
|
||||
dsBuffer->Unlock(p1, num1, 0, 0);
|
||||
thread = std::thread(std::mem_fun(&DSound::SoundLoop), this);
|
||||
|
Reference in New Issue
Block a user