Hi everyone
When I run the BasicSoundOutputDemo (Psychtoolbox-3 - BasicSoundOutputDemo), it crashes when trying to open a PortAudio audio device. I get these errors :
PTB-INFO: Choosing deviceIndex 0 [HDA Intel PCH: ALC269VB Analog (hw:0,0)] as default output audio device.
PTB-ERROR: Desired audio parameters for device -1 unsupported by audio device: Illegal combination of I/O devices
PTB-ERROR: This could be, e.g., due to an unsupported combination of audio sample rate, audio channel count/allocation, or audio sample format.
PTB-ERROR: On Linux you may be able to use ALSA audio converter plugins to make this work.
Error in function Open: Usage error
Failed to open PortAudio audio device due to unsupported combination of audio parameters.
Could not open device at wanted playback frequency of 48000 Hz. Will retry with device default frequency.
Sound may sound a bit out of tune, âŠ
PTB-INFO: Choosing deviceIndex 0 [HDA Intel PCH: ALC269VB Analog (hw:0,0)] as default output audio device.
PTB-ERROR: Desired audio parameters for device -1 unsupported by audio device: Illegal combination of I/O devices
PTB-ERROR: This could be, e.g., due to an unsupported combination of audio sample rate, audio channel count/allocation, or audio sample format.
PTB-ERROR: On Linux you may be able to use ALSA audio converter plugins to make this work.
Error in function Open: Usage error
Failed to open PortAudio audio device due to unsupported combination of audio parameters.
Error using PsychPortAudio
Usage:
pahandle = PsychPortAudio(âOpenâ [, deviceid][, mode][, reqlatencyclass][, freq][, channels][, buffersize][, suggestedLatency][,
selectchannels][, specialFlags=0]);
Error in BasicSoundOutputDemo (line 90)
pahandle = PsychPortAudio(âOpenâ, device, , 0, , nrchannels);
I am using :
- Linux Ubuntu 22.04 LTS (âThe Jammy Jellyfishâ)
- MATLAB R2023a
- 3.0.19 - Flavor: Debian package - psychtoolbox-3 (3.0.19.0.dfsg1-2~nd20.04+1)
- Only one monitor (which is my XScreen0) with built-in speakers
I have ALSA audio converter already installed.
Thank you in advance for your help!