Skip to content

Commit 856d16e

Browse files
author
dsward2
committed
An additional change was made to AudioMonitor2 ConvertBuffer() to fix a problem with using the AudioQueue for direct output to speakers.
1 parent eb99747 commit 856d16e

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

AudioMonitor/AudioMonitor/AudioMonitor2.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -491,9 +491,12 @@ void convertBuffer(void * inputBufferPtr, unsigned int dataLength)
491491
}
492492
else
493493
{
494-
TPCircularBufferClear(&(audioConverterCircularBuffer));
494+
if (volume == 0.0)
495+
{
496+
usleep(5000);
495497

496-
usleep(5000);
498+
TPCircularBufferClear(&(audioConverterCircularBuffer));
499+
}
497500
}
498501
}
499502

0 commit comments

Comments
 (0)