Created
October 26, 2011 17:57
-
-
Save talentless/1317156 to your computer and use it in GitHub Desktop.
Extending CocosDenshion Using Categories
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import "CDAudioManager.h" | |
@interface CDAudioManager (ResetBackgroundMusic) | |
-(void) resetBackgroundMusic:(CDLongAudioSource*)preloadedAudioSource; | |
@end | |
@implementation CDAudioManager (ResetBackgroundMusic) | |
-(void) resetBackgroundMusic:(CDLongAudioSource*)preloadedAudioSource { | |
backgroundMusic = preloadedAudioSource; | |
backgroundMusic.delegate = self; | |
[self resumeBackgroundMusic]; | |
} | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment