fixed some warnings in SoundManager
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user