fixed some warnings in SoundManager

This commit is contained in:
techdragon.nguyen@gmail.com
2012-02-22 08:46:18 +00:00
parent c55632a19b
commit 3d62be4549
2 changed files with 3 additions and 3 deletions

View File

@@ -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;

View File

@@ -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;
}