/* this won't call the function if the user has disabled sound
* either via menu or via command-line option
*/
- if ((use_sound == true) && (audio_device == true))
+ if (use_sound && audio_device)
{
Mix_PlayChannel( whichSpeaker, snd, 0);
int playing_music(void)
{
- if (use_music == true)
+ if (use_music)
{
return Mix_PlayingMusic();
}
int halt_music(void)
{
- if ((use_music == true) && (audio_device == true))
+ if (use_music && audio_device)
{
return Mix_HaltMusic();
}
int play_music(Mix_Music *music, int loops)
{
- if ((use_music == true) && (audio_device == true))
+ if (use_music && audio_device)
{
DEBUG_MSG(__PRETTY_FUNCTION__);
return Mix_PlayMusic(music, loops);