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
.circleci
.github
cmake
docs
media
site
src
system
tests
third_party
tools
.clang-format -rw-r--r-- 179 bytes
.editorconfig -rw-r--r-- 240 bytes
.flake8 -rw-r--r-- 656 bytes
.gitattributes -rw-r--r-- 430 bytes
.gitignore -rw-r--r-- 557 bytes
.style.yapf -rw-r--r-- 47 bytes
AUTHORS -rw-r--r-- 24.1 KB
CONTRIBUTING.md -rw-r--r-- 182 bytes
ChangeLog.md -rw-r--r-- 210.2 KB
LICENSE -rw-r--r-- 5.0 KB
Makefile -rw-r--r-- 507 bytes
README.md -rw-r--r-- 2.3 KB
em++ -rwxr-xr-x 716 bytes
em++.bat -rw-r--r-- 267 bytes
em++.py -rwxr-xr-x 480 bytes
em-config -rwxr-xr-x 716 bytes
em-config.bat -rw-r--r-- 267 bytes
em-config.py -rwxr-xr-x 959 bytes
emar -rwxr-xr-x 716 bytes
emar.bat -rw-r--r-- 267 bytes
emar.py -rwxr-xr-x 1.2 KB
embuilder -rwxr-xr-x 716 bytes
embuilder.bat -rw-r--r-- 267 bytes
embuilder.py -rwxr-xr-x 8.4 KB
emcc -rwxr-xr-x 716 bytes
emcc.bat -rw-r--r-- 267 bytes
emcc.py -rwxr-xr-x 136.0 KB
emcmake -rwxr-xr-x 716 bytes
emcmake.bat -rw-r--r-- 267 bytes
emcmake.py -rwxr-xr-x 847 bytes
emconfigure -rwxr-xr-x 716 bytes
emconfigure.bat -rw-r--r-- 267 bytes
emconfigure.py -rwxr-xr-x 1.4 KB
emmake -rwxr-xr-x 716 bytes
emmake.bat -rw-r--r-- 267 bytes
emmake.py -rwxr-xr-x 1.4 KB
emranlib -rwxr-xr-x 716 bytes
emranlib.bat -rw-r--r-- 267 bytes
emranlib.py -rwxr-xr-x 673 bytes
emrun -rwxr-xr-x 716 bytes
emrun.bat -rw-r--r-- 267 bytes
emrun.py -rwxr-xr-x 73.0 KB
emscons -rwxr-xr-x 716 bytes
emscons.bat -rw-r--r-- 267 bytes
emscons.py -rwxr-xr-x 583 bytes
emscripten-version.txt -rw-r--r-- 8 bytes
emscripten.py -rw-r--r-- 37.2 KB
emsize -rwxr-xr-x 716 bytes
emsize.bat -rw-r--r-- 267 bytes
emsize.py -rwxr-xr-x 2.5 KB
package-lock.json -rw-r--r-- 37.4 KB
package.json -rw-r--r-- 276 bytes
requirements-dev.txt -rw-r--r-- 330 bytes

README.md

back to top