d/tests/libsdl2-mixer-dev: Add a way to really play the audio
When doing manual testing, it's reassuring to actually be able to hear
something.
Simon McVittie
3 years ago
17 | 17 | CROSS_COMPILE= |
18 | 18 | fi |
19 | 19 | |
20 | export SDL_AUDIODRIVER=dummy | |
20 | # For a manual test, set this to a non-empty value | |
21 | if [ -z "${TEST_REALLY_PLAY_AUDIO-}" ]; then | |
22 | set +x | |
23 | echo "Silencing output: run with TEST_REALLY_PLAY_AUDIO=yes to hear audio" | |
24 | set -x | |
25 | export SDL_AUDIODRIVER=dummy | |
26 | fi | |
21 | 27 | |
22 | 28 | cp playmus.c "$WORKDIR" |
23 | 29 | cp playwave.c "$WORKDIR" |