-
-
Save cmsj/e8e7647c30d79386c265 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
diff --git a/extensions/audiodevice/internal.m b/extensions/audiodevice/internal.m | |
index 5584112..0066093 100644 | |
--- a/extensions/audiodevice/internal.m | |
+++ b/extensions/audiodevice/internal.m | |
@@ -48,6 +48,9 @@ static int audiodevice_watcherStop(lua_State *L); | |
#pragma mark - CoreAudio helper functions | |
OSStatus audiodevice_callback(AudioDeviceID deviceID, UInt32 numAddresses, const AudioObjectPropertyAddress addressList[], void *clientData) { | |
+ for (UInt32 j = 0; j < numAddresses; j++) { | |
+ NSLog(@"audiodevice_callback received event %d/%d: %@", j, numAddresses, (__bridge_transfer NSString *)UTCreateStringForOSType(addressList[j].mSelector)); | |
+ } | |
dispatch_sync(dispatch_get_main_queue(), ^{ | |
//NSLog(@"audiodevice_callback called with %i addresses", numAddresses); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment