diff options
author | Michael Bishop <mbtyke@gmail.com> | 2013-06-13 12:46:44 -0400 |
---|---|---|
committer | Michael Bishop <mbtyke@gmail.com> | 2013-06-13 12:46:44 -0400 |
commit | 5b41371bb5897a49e1fdcad18d053f775105c846 (patch) | |
tree | 0de6cc2e4c62025dca1f555bd8a17b52fa90a4bb /tests/runner.py | |
parent | 886e3158cf5d95a2c2721e5eb9a1c3ac4461f805 (diff) |
Added test for SDL_Mix that includes looping audio.
The test demonstrates that looping produces gaps in the sound.
Diffstat (limited to 'tests/runner.py')
-rwxr-xr-x | tests/runner.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/runner.py b/tests/runner.py index 5e101024..d6ac8a5d 100755 --- a/tests/runner.py +++ b/tests/runner.py @@ -12279,9 +12279,10 @@ elif 'browser' in str(sys.argv): def test_sdl_audio_mix(self): shutil.copyfile(path_from_root('tests', 'sounds', 'pluck.ogg'), os.path.join(self.get_dir(), 'sound.ogg')) shutil.copyfile(path_from_root('tests', 'sounds', 'the_entertainer.ogg'), os.path.join(self.get_dir(), 'music.ogg')) + shutil.copyfile(path_from_root('tests', 'sounds', 'noise.ogg'), os.path.join(self.get_dir(), 'noise.ogg')) open(os.path.join(self.get_dir(), 'sdl_audio_mix.c'), 'w').write(self.with_report_result(open(path_from_root('tests', 'sdl_audio_mix.c')).read())) - Popen([PYTHON, EMCC, '-O2', '--minify', '0', os.path.join(self.get_dir(), 'sdl_audio_mix.c'), '--preload-file', 'sound.ogg', '--preload-file', 'music.ogg', '-o', 'page.html']).communicate() + Popen([PYTHON, EMCC, '-O2', '--minify', '0', os.path.join(self.get_dir(), 'sdl_audio_mix.c'), '--preload-file', 'sound.ogg', '--preload-file', 'music.ogg', '--preload-file', 'noise.ogg', '-o', 'page.html']).communicate() self.run_browser('page.html', '', '/report_result?1') def test_sdl_audio_quickload(self): |