Skip to content

Instantly share code, notes, and snippets.

@cmsj
Last active November 18, 2015 12:52
Show Gist options
  • Save cmsj/e8e7647c30d79386c265 to your computer and use it in GitHub Desktop.
Save cmsj/e8e7647c30d79386c265 to your computer and use it in GitHub Desktop.
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