Revision c8c05ed9b72d8a7871cc9cc2930989fd703511fb authored by Aleksander Guryanov on 19 October 2020, 21:41:27 UTC, committed by GitHub on 19 October 2020, 21:41:27 UTC
SDL Docs say:

===
 int Mix_PlayMusic(Mix_Music *music, int loops)

music
    Pointer to Mix_Music to play. 
loops
    number of times to play through the music.
    0 plays the music zero times...
    -1 plays the music forever (or as close as it can get to that) 
===

So we should not play at all with 0, but it turns out SDL actually does
in practice. So don't change that. And for 1, we should play one time and
stop, and not loop forever, which this patch fixes.
1 parent 37b5cfa
History
File Mode Size
include
1.c -rw-r--r-- 4.8 KB
1.c.txt -rw-r--r-- 19 bytes
11.c -rw-r--r-- 136.8 KB
11.c.txt -rw-r--r-- 20 bytes
12.c -rw-r--r-- 175.3 KB
12.c.txt -rw-r--r-- 20 bytes
13.c -rw-r--r-- 3.1 KB
13.c.txt -rw-r--r-- 20 bytes
14.c -rw-r--r-- 172.6 KB
14.c.txt -rw-r--r-- 20 bytes
15.c -rw-r--r-- 130.5 KB
15.c.txt -rw-r--r-- 20 bytes
16.c -rw-r--r-- 89.1 KB
16.c.txt -rw-r--r-- 20 bytes
17.c -rw-r--r-- 57.9 KB
17.c.txt -rw-r--r-- 20 bytes
18.cpp -rw-r--r-- 64.2 KB
18.cpp.txt -rw-r--r-- 20 bytes
19.c -rw-r--r-- 104.4 KB
19.c.txt -rw-r--r-- 20 bytes
2.c -rw-r--r-- 154.6 KB
2.c.txt -rw-r--r-- 20 bytes
20.cpp -rw-r--r-- 64.0 KB
20.cpp.txt -rw-r--r-- 20 bytes
21.c -rw-r--r-- 171.2 KB
21.c.txt -rw-r--r-- 20 bytes
22.c -rw-r--r-- 115.7 KB
22.c.txt -rw-r--r-- 20 bytes
23.cpp -rw-r--r-- 29.4 KB
23.cpp.txt -rw-r--r-- 20 bytes
24.cpp -rw-r--r-- 357.4 KB
24.cpp.txt -rw-r--r-- 20 bytes
25.c -rw-r--r-- 121.5 KB
25.c.txt -rw-r--r-- 20 bytes
3.c -rw-r--r-- 56.2 KB
3.c.txt -rw-r--r-- 20 bytes
4.c -rw-r--r-- 9.2 KB
4.c.txt -rw-r--r-- 20 bytes
5.c -rw-r--r-- 647 bytes
5.c.txt -rw-r--r-- 687 bytes
6.c -rw-r--r-- 84.5 KB
6.c.txt -rw-r--r-- 20 bytes
7.c -rw-r--r-- 44.4 KB
7.c.txt -rw-r--r-- 20 bytes
8.c -rw-r--r-- 150.3 KB
8.c.txt -rw-r--r-- 20 bytes
9.c -rw-r--r-- 94.2 KB
9.c.txt -rw-r--r-- 20 bytes
creduce_tester.py -rwxr-xr-x 1.7 KB
csmith_driver.py -rwxr-xr-x 6.7 KB
test.sh -rwxr-xr-x 1.5 KB
testpp.sh -rwxr-xr-x 1.4 KB

back to top