So I have a Debian/stable box for a sound installation and I want to
run pd with -nogui on it. But it is acting insane. Basically, when I
run Pd with a GUI, everything works fine. When I add -nogui, pd can't
read/write the audio devices. I've tried:
Here's what I get with OSS: pd@arg:~$ pd -nogui /tmp/test.pd /dev/dsp (read/write): Device or resource busy (now will try write-only...) /dev/dsp (writeonly): Device or resource busy /dev/dsp (readonly): Device or resource busy audio I/O stuck... closing audio
Here's what I get with ALSA: pd@arg:~$ pd -alsa -nogui /tmp/test.pd snd_pcm_open (input): Device or resource busy snd_pcm_open (output): Device or resource busy
Any ideas?
.hc
Looking at things from a more basic level, you can come up with a more
direct solution... It may sound small in theory, but it in practice,
it can change entire economies. - Amy Smith
Hans-Christoph Steiner wrote:
So I have a Debian/stable box for a sound installation and I want to run pd with -nogui on it. But it is acting insane. Basically, when I run Pd with a GUI, everything works fine. When I add -nogui, pd can't read/write the audio devices. I've tried:
- ALSA and OSS
- root and other users
- Pd-extended 0.41.4 and 0.42.5 and Pd-vanilla 0.41.4
Here's what I get with OSS: pd@arg:~$ pd -nogui /tmp/test.pd /dev/dsp (read/write): Device or resource busy (now will try write-only...) /dev/dsp (writeonly): Device or resource busy /dev/dsp (readonly): Device or resource busy audio I/O stuck... closing audio
Here's what I get with ALSA: pd@arg:~$ pd -alsa -nogui /tmp/test.pd snd_pcm_open (input): Device or resource busy snd_pcm_open (output): Device or resource busy
Any ideas?
I have no trouble here on debian stable using the jack output. Do you have more than one sound card? I think you need to specify the sound card on the command line, because otherwise it tries the first card it finds and fails if it cannot open that one.
On the subject: pd does not auto-connect in for me because it always tries to connect to my midi controller instead of the sound card. I am happy with this because I prefer to connect manually anyway, but I guess it is worth checking out if you want autoconnecting to happen. There is a check in the jack API IIRC to test whether a given physical device accepts sound input (jack can handle midi also).
Hans-Christoph Steiner wrote:
So I have a Debian/stable box for a sound installation and I want to run pd with -nogui on it. But it is acting insane. Basically, when I run Pd with a GUI, everything works fine. When I add -nogui, pd can't read/write the audio devices. I've tried:
- ALSA and OSS
- root and other users
- Pd-extended 0.41.4 and 0.42.5 and Pd-vanilla 0.41.4
Here's what I get with OSS: pd@arg:~$ pd -nogui /tmp/test.pd /dev/dsp (read/write): Device or resource busy (now will try write-only...) /dev/dsp (writeonly): Device or resource busy /dev/dsp (readonly): Device or resource busy audio I/O stuck... closing audio
https://sourceforge.net/tracker/?func=detail&aid=2724318&group_id=55...
i thought that approximately 3 or so people (including you) on the world would have a good overview on the open bugs in the tracker :-)
fgmasdr IOhannes
On Nov 30, 2009, at 3:53 AM, IOhannes m zmoelnig wrote:
Hans-Christoph Steiner wrote:
So I have a Debian/stable box for a sound installation and I want
to run pd with -nogui on it. But it is acting insane. Basically, when I
run Pd with a GUI, everything works fine. When I add -nogui, pd can't read/write the audio devices. I've tried:
- ALSA and OSS
- root and other users
- Pd-extended 0.41.4 and 0.42.5 and Pd-vanilla 0.41.4
Here's what I get with OSS: pd@arg:~$ pd -nogui /tmp/test.pd /dev/dsp (read/write): Device or resource busy (now will try write-only...) /dev/dsp (writeonly): Device or resource busy /dev/dsp (readonly): Device or resource busy audio I/O stuck... closing audio
https://sourceforge.net/tracker/?func=detail&aid=2724318&group_id=55...
i thought that approximately 3 or so people (including you) on the
world would have a good overview on the open bugs in the tracker :-)
Too much information... running thru my brain. I can't keep track of
it all. It did make me think it would be awesome to have a search on
puredata.info that also searched sourceforge and pdpedia.
Anyway, that workaround worked for me. Has anyone looked at this bug
before? Any ideas? Is it complicated?
.hc
News is what people want to keep hidden and everything else is
publicity. - Bill Moyers