Skip to content

Commit

Permalink
proper SystemSoundID cast
Browse files Browse the repository at this point in the history
  • Loading branch information
Filipe Pina committed Dec 16, 2013
1 parent 4c744ed commit c2922e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MuteDetector/SKMuteSwitchDetector.m
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ void MuteSoundPlaybackComplete(SystemSoundID ssID,void* clientData){

NSDictionary *soundData = CFBridgingRelease(clientData);
SKMuteSwitchDetectorBlock andPerform = soundData[@"andPerform"];
SystemSoundID soundId = [soundData[@"soundId"] integerValue];
SystemSoundID soundId = [soundData[@"soundId"] unsignedIntValue];

NSTimeInterval elapsed = [NSDate timeIntervalSinceReferenceDate] - [soundData[@"start"] doubleValue];
andPerform(YES, elapsed < 0.2);
Expand Down

0 comments on commit c2922e3

Please sign in to comment.