mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-25 15:53:52 +02:00
Bug 1969 - Windows: no monitored sound for 15 secs with software playthrough with default MME host
This was a bug in portaudio MME implementation. With all the buffers bigger than they were meant to be, we got a longer input and longer output delay.
This commit is contained in:
@@ -1751,7 +1751,11 @@ static PaError CalculateBufferSettings(
|
|||||||
|
|
||||||
if( *hostFramesPerOutputBuffer != *hostFramesPerInputBuffer )
|
if( *hostFramesPerOutputBuffer != *hostFramesPerInputBuffer )
|
||||||
{
|
{
|
||||||
if( hostFramesPerInputBuffer < hostFramesPerOutputBuffer )
|
// JKC: Patched By Audacity. Our Bug 1969
|
||||||
|
// Previously this line incorrectly read:
|
||||||
|
// if( hostFramesPerInputBuffer < hostFramesPerOutputBuffer )
|
||||||
|
// So it was comparing pointers, rather than the values pointed to.
|
||||||
|
if( *hostFramesPerInputBuffer < *hostFramesPerOutputBuffer )
|
||||||
{
|
{
|
||||||
*hostFramesPerOutputBuffer = *hostFramesPerInputBuffer;
|
*hostFramesPerOutputBuffer = *hostFramesPerInputBuffer;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user