Skip to content

Commit

Permalink
Do not mix music if its volume is zero.
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephane Peter committed Nov 9, 1999
1 parent 2b4ba31 commit 2e37cba
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions music.c
Expand Up @@ -157,6 +157,9 @@ void music_mixer(void *udata, Uint8 *stream, int len)
}
}
}
if ( music_volume <= 0 ) { /* Don't mix if volume is null */
return;
}
switch (music_playing->type) {
#ifdef CMD_MUSIC
case MUS_CMD:
Expand Down

0 comments on commit 2e37cba

Please sign in to comment.