octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #63899] error report for audio part in Psychto


From: anonymous
Subject: [Octave-bug-tracker] [bug #63899] error report for audio part in Psychtoolbox
Date: Fri, 10 Mar 2023 15:47:53 -0500 (EST)

Follow-up Comment #4, bug #63899 (project octave):

Hello, 
Here is a minimal example followed by the error report:

##### EXAMPLE ######
clear;
close all;
sca;
InitializePsychSound(1);
nrchannels = 2;
freq = 48000;
beepLengthSecs = 1;
startCue = 0;
waitForDeviceStart = 1;
pahandle = PsychPortAudio('Open', [], 1, 1, freq, nrchannels);
PsychPortAudio('Volume', pahandle, 0.5);
myBeep = MakeBeep(500, beepLengthSecs, freq);
PsychPortAudio('FillBuffer', pahandle, [myBeep; myBeep]);
PsychPortAudio('Start', pahandle, repetitions, startCue, waitForDeviceStart);
PsychPortAudio('Stop', pahandle, 1, 1);
PsychPortAudio('Close', pahandle);
##### END OF EXAMPLE #####

#### ERROR REPORT ####
PTB-INFO: Using PortAudio V19.6.0-devel, revision
396fe4b6699ae929d3a685b3ef8a7e97396139a4
PTB-INFO: Choosing deviceIndex 0 [HDA Intel PCH: ALC298 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: PsychPortAudio: Usage:

pahandle = PsychPortAudio('Open' [, deviceid][, mode][, reqlatencyclass][,
freq][, channels][, buffersize][, suggestedLatency][, selectchannels][,
specialFlags=0]);
#### END OF ERROR REPORT ####

Additional notes: 
- OS: Ubuntu 22.04 jammy,  Kernel: x86_64 Linux 5.19.0-35-generic
- Psychtoolbox-3 for GNU/Linux X11, under GNU/Octave 64-Bit (Version 3.0.19 -
Build date: Feb 24 2023).
- after running the example, there in not sound from the speakers and it comes
back after exiting OCTAVE. 
- this error appeared suddenly without me changing something in the scripts 

I think I will uninstall & re-install Psychtoolbox & OCTAVE. 

Thank you for your time. 



    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?63899>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]