Skip to content

Commit 1d68bd1

Browse files
committed
Added audio tests with the stack starting at 4GB and 4GB
1 parent 2dfefb1 commit 1d68bd1

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

test/test_interactive.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,19 @@ def test_audio_worklet_2x_hard_pan_io(self):
334334
shutil.copy(test_file('webaudio/audio_files/emscripten-bass-mono.mp3'), 'audio_files/')
335335
self.btest_exit('webaudio/audioworklet_2x_in_hard_pan.c', args=['-sAUDIO_WORKLET', '-sWASM_WORKERS'])
336336

337+
# Same as 'test_audio_worklet_2x_stereo_io' but as wasm64 with the worklet stack starting 2GB in (tests for unsigned shifts in the memory offsets)
338+
def test_audio_worklet_stereo_io_2gb(self):
339+
os.mkdir('audio_files')
340+
shutil.copy(test_file('webaudio/audio_files/emscripten-beat.mp3'), 'audio_files/')
341+
shutil.copy(test_file('webaudio/audio_files/emscripten-bass.mp3'), 'audio_files/')
342+
self.btest_exit('webaudio/audioworklet_in_out_stereo.c', args=['-sAUDIO_WORKLET', '-sWASM_WORKERS', '-sMEMORY64', '-sINITIAL_MEMORY=4311744512', '-DTEST_OFFSET_GB=2'])
343+
344+
# Same as 'test_audio_worklet_stereo_io_2gb' but with a 4GB offset
345+
def test_audio_worklet_stereo_io_4gb(self):
346+
os.mkdir('audio_files')
347+
shutil.copy(test_file('webaudio/audio_files/emscripten-beat.mp3'), 'audio_files/')
348+
shutil.copy(test_file('webaudio/audio_files/emscripten-bass.mp3'), 'audio_files/')
349+
self.btest_exit('webaudio/audioworklet_in_out_stereo.c', args=['-sAUDIO_WORKLET', '-sWASM_WORKERS', '-sMEMORY64', '-sINITIAL_MEMORY=4311744512', '-DTEST_OFFSET_GB=4'])
337350

338351
class interactive64(interactive):
339352
def setUp(self):

0 commit comments

Comments
 (0)