1 |
if (audio_other_fade == true) |
2 |
{ |
3 |
if (audio_sound_get_gain(audio_to_fade) >= 0.2) |
4 |
audio_sound_gain(audio_to_fade, 0, audio_fade_length) |
5 |
else |
6 |
{ |
7 |
audio_stop_sound(audio_to_fade) |
8 |
audio_sound_gain(audio_to_fade, 1, 0) |
9 |
audio_other_fade = false |
10 |
} |
11 |
} |
12 |
if (bgm == -4 && audio_is_playing(current_song)) |
13 |
audio_stop_sound(current_song) |
14 |
else if ((!audio_is_playing(bgm)) && global.radio_restart) |
15 |
{ |
16 |
audio_stop_sound(current_song) |
17 |
global.radio_fade_out = false |
18 |
current_song = audio_play_sound(bgm, 20, 1) |
19 |
global.radio_restart = false |
20 |
} |