DEV Community

Discussion on: Python audio processing at lightspeed ⚡ Part 3: pyo

Collapse
 
paulspignon profile image
paulspignon

s = Server().boot()
ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dmix.c:1108:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
ALSA lib pcm_oss.c:377:(_snd_pcm_oss_open) Unknown field port
ALSA lib pcm_oss.c:377:(_snd_pcm_oss_open) Unknown field port
ALSA lib pcm_a52.c:823:(_snd_pcm_a52_open) a52 is only for playback
ALSA lib pcm_usb_stream.c:486:(_snd_pcm_usb_stream_open) Invalid type for card
ALSA lib pcm_usb_stream.c:486:(_snd_pcm_usb_stream_open) Invalid type for card
ALSA lib pcm_dmix.c:1108:(snd_pcm_dmix_open) unable to open slave
Pyo warning: Portaudio input device HDA Intel HDMI: 0 (hw:0,3) has fewer channels (0) than requested (2).
Portaudio error in Pa_OpenStream: Invalid number of channels
Pyo error: From portaudio, Invalid number of channels
Portaudio error in Pa_CloseStream (pa_deinit): PortAudio not initialized
Portaudio error in Pa_Terminate (pa_deinit): PortAudio not initialized
Pyo error:
Server not booted.

Any ideas why this doesn't work? Audacity, pd-l2or, VLC and many other audio applications have no trouble communicating with my sound interfaces.

Collapse
 
zenulabidin profile image
Ali Sherief

It seems like a problem in Portaudio (the backend that Pyo uses). This message in particular:

Pyo warning: Portaudio input device HDA Intel HDMI: 0 (hw:0,3) has fewer channels (0) than requested (2).

I've been getting that error sometimes and I can't seem to reproduce it consistently. My wild guess is that something else exclusively opened the input device, but I haven't looked hard enough at the Portaudio code base to confirm this.

Collapse
 
paulspignon profile image
paulspignon

Thanks for the answer Ali. Tried all sorts, making sure nothing else using audio, increasing priority of python, etc. No joy I'm afraid. And no idea why other audio applications (audacity, pd-l2ork etc.) do not have any such problems. Suspect something wonky about the python implementation vis á vis the low-level audio interface. As I said, all other applications involving audio work without a hitch.