Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding patch for RtAudio bug that caused crashes on OSX
- Loading branch information
1 parent
9274742
commit b4e397d
Showing
2 changed files
with
14 additions
and
0 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
subprojects/packagefiles/rtaudio-remove-input-disconnect-listener.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/RtAudio.cpp b/RtAudio.cpp | ||
index 0a55be1..bbe2539 100644 | ||
--- a/RtAudio.cpp | ||
+++ b/RtAudio.cpp | ||
@@ -1981,7 +1981,7 @@ void RtApiCore :: closeStream( void ) | ||
} | ||
} | ||
|
||
- if ( handle->disconnectListenerAdded[0] ) { | ||
+ if ( handle->disconnectListenerAdded[1] ) { | ||
property.mSelector = kAudioDevicePropertyDeviceIsAlive; | ||
if (AudioObjectRemovePropertyListener( handle->id[1], &property, streamDisconnectListener, (void *) &stream_.callbackInfo ) != noErr) { | ||
errorText_ = "RtApiCore::closeStream(): error removing disconnect property listener!"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters