mirror of
https://github.com/cookiengineer/audacity
synced 2025-04-30 07:39:42 +02:00
Create and apply MME patch
This commit is contained in:
parent
0119ef2218
commit
605a64f935
17
lib-src/portaudio-v19/mmefix.patch
Normal file
17
lib-src/portaudio-v19/mmefix.patch
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
diff --git a/lib-src/portaudio-v19/src/hostapi/wmme/pa_win_wmme.c b/lib-src/portaudio-v19/src/hostapi/wmme/pa_win_wmme.c
|
||||||
|
index 422c86714..9047149ff 100644
|
||||||
|
--- a/lib-src/portaudio-v19/src/hostapi/wmme/pa_win_wmme.c
|
||||||
|
+++ b/lib-src/portaudio-v19/src/hostapi/wmme/pa_win_wmme.c
|
||||||
|
@@ -1751,7 +1751,11 @@ static PaError CalculateBufferSettings(
|
||||||
|
|
||||||
|
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;
|
||||||
|
|
@ -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;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user