mirror of
https://gitlab.com/dosowisko.net/libsuperderpy.git
synced 2025-02-08 06:06:43 +01:00
mute audio by setting main mixer gain to 0.0
using al_set_mixer_playing causes high CPU usage for some reason
This commit is contained in:
parent
7c92d1e05e
commit
f215bc0c83
1 changed files with 1 additions and 1 deletions
|
@ -265,7 +265,7 @@ SYMBOL_EXPORT struct Game* libsuperderpy_init(int argc, char** argv, const char*
|
||||||
al_set_mixer_gain(game->audio.fx, game->config.fx / 10.0);
|
al_set_mixer_gain(game->audio.fx, game->config.fx / 10.0);
|
||||||
al_set_mixer_gain(game->audio.music, game->config.music / 10.0);
|
al_set_mixer_gain(game->audio.music, game->config.music / 10.0);
|
||||||
al_set_mixer_gain(game->audio.voice, game->config.voice / 10.0);
|
al_set_mixer_gain(game->audio.voice, game->config.voice / 10.0);
|
||||||
al_set_mixer_playing(game->audio.mixer, !game->config.mute);
|
al_set_mixer_gain(game->audio.mixer, game->config.mute ? 0.0 : 1.0);
|
||||||
|
|
||||||
setlocale(LC_NUMERIC, "C");
|
setlocale(LC_NUMERIC, "C");
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue