[Apologies if this is a dupe; I thought I posted it yesterday but it's not showing up in the group...]
I am trying to use pyo on a Fedora 23 system (which includes portaudio 19). Using pyo built from source yesterday, when I attempt to boot a pyo server:
>>> import pyo
pyo version 0.7.8 (uses single precision)
>>> s = pyo.Server().boot()
I get the following error:
Expression 'parameters->channelCount <= maxChans' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1513
Expression 'ValidateParameters( outputParameters, hostApi, StreamDirection_Out )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2820
portaudio error in Pa_OpenStream: Invalid number of channels
Portaudio error: Invalid number of channels
Server not booted.
Other Python code that uses the portaudio API seems to work without a problem. For example, using sounddevice:
>>> import sounddevice
>>> d = sounddevice.rec(44100*10, samplerate=44100, channels=2)
>>>
sounddevice.play(d, samplerate=44100)
Or using pyaudio:
>>> import pyaudio
>>> pa = pyaudio.PyAudio()
>>> i = pa.open(rate=44100, format=pyaudio.paFloat32, channels=2, input=True)
>>> d = i.read(41000 * 10)
>>> o = pa.open(rate=44100, format=pyaudio.paFloat32, channels=2, output=True)
>>> o.write(d)
Why is this error surfacing when using pyo and how do I correct it? I've tried explicitly setting input and output devices before booting the server, and I've tried explicitly setting nchnls to "1" or "2", and in all cases I'm getting the same error.
Thanks!