Personal tools
You are here: Home documentation FAQ for Pd Why doesn't audio work when I start Pd in -nogui mode?
Document Actions

Why doesn't audio work when I start Pd in -nogui mode?

Up to Table of Contents

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 busy
If 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.
by Dan Wilcox last modified 2013-03-02 08:05 PM

Powered by IEM Powered by Plone Section 508 WCAG Valid XHTML Valid CSS Usable in any browser