-
Couldn't load subscription status.
- Fork 3.4k
[CI] Enable audio tests in Chrome #23665
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 15 commits
42e032e
c858dea
29451a4
b7fb25a
a9132c8
92c8b5c
a42c6d4
4b80dd2
9bcf181
f9a781b
e8ca2c4
9fd83f7
9e63502
e9f37db
5d27dc8
9008192
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3231,6 +3231,7 @@ def test_sdl2_misc_via_object(self): | |
| '': (['-sUSE_SDL=2', '-sUSE_SDL_MIXER=2'],), | ||
| 'dash_l': (['-lSDL2', '-lSDL2_mixer'],), | ||
| }) | ||
| @no_wasm64('TODO: SDL2 audio memory64') | ||
| @requires_sound_hardware | ||
| def test_sdl2_mixer_wav(self, flags): | ||
| shutil.copy(test_file('sounds/the_entertainer.wav'), 'sound.wav') | ||
|
|
@@ -3244,6 +3245,7 @@ def test_sdl2_mixer_wav(self, flags): | |
| # TODO: need to source freepats.cfg and a midi file | ||
| # 'mod': (['mid'], 'MIX_INIT_MID', 'midi.mid'), | ||
| }) | ||
| @no_wasm64('TODO: SDL2 audio memory64') | ||
|
||
| @requires_sound_hardware | ||
| def test_sdl2_mixer_music(self, formats, flags, music_name): | ||
| shutil.copy(test_file('sounds', music_name), '.') | ||
|
|
@@ -5469,9 +5471,8 @@ def test_full_js_library_strict(self): | |
| 'es6': (['-sEXPORT_ES6'],), | ||
| 'strict': (['-sSTRICT'],), | ||
| }) | ||
| @requires_sound_hardware | ||
| def test_audio_worklet(self, args): | ||
| if '-sMEMORY64' in args and is_firefox(): | ||
| self.skipTest('https://github.com/emscripten-core/emscripten/issues/19161') | ||
| self.btest_exit('webaudio/audioworklet.c', args=['-sAUDIO_WORKLET', '-sWASM_WORKERS'] + args) | ||
|
|
||
| # Tests that audioworklets and workers can be used at the same time | ||
|
|
@@ -5490,6 +5491,7 @@ def test_audio_worklet_post_function(self, args): | |
| '': ([],), | ||
| 'closure': (['--closure', '1', '-Oz'],), | ||
| }) | ||
| @requires_sound_hardware | ||
| def test_audio_worklet_modularize(self, args): | ||
| self.btest_exit('webaudio/audioworklet.c', args=['-sAUDIO_WORKLET', '-sWASM_WORKERS', '-sMODULARIZE=1', '-sEXPORT_NAME=MyModule', '--shell-file', test_file('shell_that_launches_modularize.html')] + args) | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we make this change should we also remove the
EMTEST_LACKS_SOUND_HARDWAREsetting above?I'm kind of inclined to make this change as its one separate PR, e.g.
[CI] Enable audio testing on chrome?Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't have much time today so it was mostly experimenting and coming back to it, but:
EMTEST_LACKS_SOUND_HARDWARE✅Is it fine to always enable the dummy sound hardware and bypass the media interaction? I can't think what this would break (and where real sound hardware is present its used as a preference, at least from my manual testing).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I imagine enabling dummy sounds hardware and bypass the interaction check should be fine for all out tests..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I limited removing
EMTEST_LACKS_SOUND_HARDWAREto Chrome (FF I can't get to work, documented in the comments).