1 | if (update == 1) |
2 | { |
3 | timer++; |
4 | mus_volume(global.currentsong[1], 0, 16); |
5 | if (timer == 16) |
6 | update = 2; |
7 | } |
8 | if (update == 2) |
9 | { |
10 | if (scr_sideb_get_phase |
11 | { |
12 | mysong = altsong; |
13 | songspeed = 1.2; |
14 | } |
15 | else |
16 | { |
17 | mysong = defaultsong; |
18 | songspeed = 0.97; |
19 | } |
20 | global.currentsong[0] = snd_init(mysong); |
21 | global.currentsong[1] = mus_loop_ext(global.currentsong[0], 0.8, songspeed); |
22 | update = 0; |
23 | timer = 0; |
24 | } |