Skip to content

Instantly share code, notes, and snippets.

@jontelang
Created May 22, 2013 06:38
Show Gist options
  • Save jontelang/5625667 to your computer and use it in GitHub Desktop.
Save jontelang/5625667 to your computer and use it in GitHub Desktop.
asd
UInt32 otherAudioIsPlaying;
UInt32 propertySize = sizeof (otherAudioIsPlaying);
AudioSessionGetProperty (
kAudioSessionProperty_OtherAudioIsPlaying,
&propertySize,
&otherAudioIsPlaying
);
NSLog(@"isother? %u", otherAudioIsPlaying);
NSLog(@"isother? %u", otherAudioIsPlaying);
NSLog(@"isother? %u", otherAudioIsPlaying);
NSLog(@"isother? %u", otherAudioIsPlaying);
if(otherAudioIsPlaying)
{
shouldPlaySound = NO;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment