Alright, so I tried different combinations. It works when the sound component and silent video are in different routines. But whenever they are in the same routine, either the audio changes to a different pitch & runs faster, or it completely fails and results in the following error: PTB-ERROR: Failed to open audio device -1. PortAudio reports this error: Invalid device
PTB-ERROR: Desired audio parameters likely unsupported by audio device.
PTB-ERROR: This could be, e.g., due to an unsupported combination of timing, sample rate, audio channel count/allocation, or sample format.
Error in function Open: Usage error
Failed to open PortAudio audio device due to some unsupported combination of audio parameters.
PsychPortAudio:Open: Usage:
pahandle = PsychPortAudio(‘Open’ [, deviceid][, mode][, reqlatencyclass][, freq][, channels][, buffersize][, suggestedLatency][, selectchannels][, specialFlags=0]);
Now I need to restart my computer because audio is gone everywhere, like there is no sound coming from Youtube videos.