Skip to content

Commit

Permalink
An additional change was made to AudioMonitor2 ConvertBuffer() to fix…
Browse files Browse the repository at this point in the history
… a problem with using the AudioQueue for direct output to speakers.
  • Loading branch information
dsward2 committed Sep 9, 2018
1 parent eb99747 commit 856d16e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions AudioMonitor/AudioMonitor/AudioMonitor2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -491,9 +491,12 @@ void convertBuffer(void * inputBufferPtr, unsigned int dataLength)
}
else
{
TPCircularBufferClear(&(audioConverterCircularBuffer));
if (volume == 0.0)
{
usleep(5000);

usleep(5000);
TPCircularBufferClear(&(audioConverterCircularBuffer));
}
}
}

Expand Down

0 comments on commit 856d16e

Please sign in to comment.