diff --git a/projects/mtg/iOS/SoundManager/SoundManager.h b/projects/mtg/iOS/SoundManager/SoundManager.h index 8885a046b..6fb0a575a 100644 --- a/projects/mtg/iOS/SoundManager/SoundManager.h +++ b/projects/mtg/iOS/SoundManager/SoundManager.h @@ -83,7 +83,7 @@ // |aLocation| is used to set the location of the sound source in relation to the listener // and |aLoop| specifies if the sound should be continuously looped or not. - (NSUInteger)playSoundWithKey:(NSString*)aSoundKey gain:(float)aGain pitch:(float)aPitch - location:(CGPoint)aLocation shouldLoop:(BOOL)aLoop sourceID:(NSUInteger)aSourceID; + location:(CGPoint)aLocation shouldLoop:(BOOL)aLoop sourceID:(NSInteger)aSourceID; // Stops all sounds playing with the supplied sound key - (void)stopSoundWithKey:(NSString*)aSoundKey; diff --git a/projects/mtg/iOS/SoundManager/SoundManager.m b/projects/mtg/iOS/SoundManager/SoundManager.m index d46678de5..d6c79cc32 100644 --- a/projects/mtg/iOS/SoundManager/SoundManager.m +++ b/projects/mtg/iOS/SoundManager/SoundManager.m @@ -419,7 +419,7 @@ SYNTHESIZE_SINGLETON_FOR_CLASS(SoundManager); #pragma mark - #pragma mark Sound control -- (NSUInteger)playSoundWithKey:(NSString*)aSoundKey gain:(float)aGain pitch:(float)aPitch location:(CGPoint)aLocation shouldLoop:(BOOL)aLoop sourceID:(NSUInteger)aSourceID { +- (NSUInteger)playSoundWithKey:(NSString*)aSoundKey gain:(float)aGain pitch:(float)aPitch location:(CGPoint)aLocation shouldLoop:(BOOL)aLoop sourceID:(NSInteger)aSourceID { // Find the buffer linked to the key which has been passed in NSNumber *numVal = [soundLibrary objectForKey:aSoundKey]; @@ -795,7 +795,7 @@ SYNTHESIZE_SINGLETON_FOR_CLASS(SoundManager); // Set the audio session state to true and report any errors [audioSession setActive:YES error:&audioSessionError]; if (audioSessionError) { - NSLog(@"ERROR - SoundManager: Unable to set the audio session state to YES with error %d.", result); + NSLog(@"ERROR - SoundManager: Unable to set the audio session state to YES with error %@.", [audioSessionError localizedDescription]); return; }