added some debug statements for JSfx.cpp

minor correction to handling download delegate removal
changed constant literals to use constant labels.  Not sure why this was changed in the first place as it didn't need to be.
This commit is contained in:
techdragon.nguyen@gmail.com
2012-02-05 23:32:55 +00:00
parent dc16ba2adb
commit d343b8e159
3 changed files with 8 additions and 4 deletions
+4
View File
@@ -120,12 +120,14 @@ JMusic *JSoundSystem::LoadMusic(const char *fileName)
void JSoundSystem::ResumeMusic(JMusic *music)
{
NSLog(@"Resuming Music");
[[SoundManager sharedSoundManager] resumeMusic];
}
void JSoundSystem::PauseMusic(JMusic *music)
{
NSLog(@"Pausing Music");
[[SoundManager sharedSoundManager] pauseMusic];
}
@@ -133,12 +135,14 @@ void JSoundSystem::PauseMusic(JMusic *music)
void JSoundSystem::PlayMusic(JMusic *music, bool looping)
{
NSString *key = [NSString stringWithCString: music->key.c_str() encoding: NSUTF8StringEncoding];
NSLog(@"Playing music file %@", [NSString stringWithCString: music->filename.c_str() encoding:NSUTF8StringEncoding]);
[[SoundManager sharedSoundManager] playMusicWithKey: key timesToRepeat: looping? -1 : 1];
}
void JSoundSystem::StopMusic(JMusic *music)
{
NSLog(@"Stopping Music");
[[SoundManager sharedSoundManager] stopMusic];
}