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
build_benchmark -rw-r--r-- 145 bytes
embind.benchmark.js -rw-r--r-- 9.6 KB
embind.test.js -rw-r--r-- 105.1 KB
embind_benchmark.cpp -rw-r--r-- 14.6 KB
embind_test.cpp -rw-r--r-- 83.9 KB
imvu_test_adapter.js -rw-r--r-- 20.3 KB
isMemoryGrowthEnabled=true.cpp -rw-r--r-- 393 bytes
shell.html -rw-r--r-- 3.8 KB
test.post.js -rw-r--r-- 23 bytes
test.pre.js -rw-r--r-- 55 bytes
test_custom_marshal.cpp -rw-r--r-- 2.5 KB
test_custom_marshal.js -rw-r--r-- 89 bytes
test_custom_marshal.out -rw-r--r-- 112 bytes
test_float_constants.cpp -rw-r--r-- 852 bytes
test_float_constants.out -rw-r--r-- 95 bytes
test_negative_constants.cpp -rw-r--r-- 1.2 KB
test_negative_constants.out -rw-r--r-- 149 bytes
test_unsigned.cpp -rw-r--r-- 1.4 KB
test_unsigned.out -rw-r--r-- 66 bytes
test_val.cpp -rw-r--r-- 16.2 KB
test_val.out -rw-r--r-- 2.4 KB
underscore-1.4.2.js -rw-r--r-- 40.0 KB
underscore-externs.js -rw-r--r-- 17.2 KB

back to top