Skip to content

Commit 8597567

Browse files
committed
Added interactive parameter mixing test
1 parent 52ccabb commit 8597567

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/test_interactive.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,13 @@ 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+
# Tests an AudioWorklet with multiple stereo inputs mixing in the processor via a parameter to a single stereo output
338+
def test_audio_worklet_params_mixing(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_params_mixing.c', args=['-sAUDIO_WORKLET', '-sWASM_WORKERS'])
343+
337344
# Same as 'test_audio_worklet_2x_stereo_io' but with the worklet stack starting at 2GB in (tests for unsigned shifts in the memory offsets)
338345
def test_audio_worklet_stereo_io_2gb(self):
339346
os.mkdir('audio_files')

0 commit comments

Comments
 (0)