Skip to content

Commit

Permalink
Audio: Log message about changing sound fonts
Browse files Browse the repository at this point in the history
In general, the audio driver should not print user-visible
messages.
  • Loading branch information
skyjake committed Jul 14, 2012
1 parent 576ef7c commit feebfbc
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions doomsday/engine/portable/src/audiodriver_music.c
Expand Up @@ -163,6 +163,17 @@ void AudioDriver_Music_Set(int property, void* ptr)
{
musicSet((audiointerface_music_t*) ifs[i], property, ptr);
}

if(property == AUDIOP_SOUNDFONT_FILENAME)
{
const char* fn = ptr;
if(!fn || !fn[0]) return; // No path.

if(F_FileExists(fn))
Con_Message("Current soundfont set to: \"%s\"\n", fn);
else
Con_Message("Warning: Soundfont \"%s\" not found.\n", fn);
}
}

int AudioDriver_Music_PlayNativeFile(const char* fileName, boolean looped)
Expand Down

0 comments on commit feebfbc

Please sign in to comment.