added debug output info for PlayMusic
This commit is contained in:
parent
3394f7c959
commit
912ced1855
1 changed files with 4 additions and 0 deletions
|
@ -216,6 +216,8 @@ global int PlayMusic(const char* name)
|
|||
|
||||
name = LibraryFileName(name, buffer);
|
||||
|
||||
DebugPrint("attempting to play %s\n" _C_ name);
|
||||
|
||||
if ((sample = LoadWav(name, PlayAudioStream))) {
|
||||
StopMusic();
|
||||
MusicSample = sample;
|
||||
|
@ -275,6 +277,8 @@ global int PlayMusic(const char* name)
|
|||
return 1;
|
||||
}
|
||||
#endif
|
||||
DebugPrint("could not play %s\n" _C_ name);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue