Skip to content

Commit

Permalink
Adding patch for RtAudio bug that caused crashes on OSX
Browse files Browse the repository at this point in the history
  • Loading branch information
mikedickey committed Jan 11, 2024
1 parent 9274742 commit b4e397d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
@@ -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!";
1 change: 1 addition & 0 deletions subprojects/rtaudio.wrap
Expand Up @@ -3,6 +3,7 @@ directory = rtaudio-6.0.1
source_url = https://github.com/thestk/rtaudio/archive/refs/tags/6.0.1.tar.gz
source_filename = 6.0.1.tar.gz
source_hash = 7206c8b6cee43b474f43d64988fefaadfdcfc4264ed38d8de5f5d0e6ddb0a123
diff_files = rtaudio-remove-input-disconnect-listener.patch

[provide]
dependency_names = rtaudio

0 comments on commit b4e397d

Please sign in to comment.