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
fopen_write.cpp -rw-r--r-- 1.1 KB
hello_file.cpp -rw-r--r-- 895 bytes
hello_file.txt -rw-r--r-- 6 bytes
read_file_twice.cpp -rw-r--r-- 912 bytes
relative_paths.cpp -rw-r--r-- 1.2 KB

back to top