Why doesn't audio work when I start Pd in -nogui mode?
Up to Table of ContentsThis FAQ applies to: Any version.
When I start Pd from the commandline without the GUI in -nogui mode, it can't connect to the soundcard and no dsp seems to happen?
Currently, there is a bug in Pd where starting in -nogui mode causes patches to be run before it connects to a sound card. When running the graphical user interface (GUI), there is a delay as the GUI is being setup before patches are run and this is enough time for the sound to be connected.
Basically, if you are turning on dsp with a loadbang like this:
[loadbang] | [; pd dsp 1(Pd tries to start dsp, but in -nogui mode, it hasn't yet connected to the sound card and you'll get an error similar to this:
snd_pcm_open (input): Device or resource busy snd_pcm_open (output): Device or resource busyIf so, you can add a delay before starting the dsp:
[loadbang] | [delay 100] | [; pd dsp 1(This should be enough time to mimic the delay taken when the GUI starts and the sound card can be setup before dsp is started.
saturator~: nonlinear compressor
PD/Gem Initial Lecture