Bugs item #2724318, was opened at 2009-03-31 21:23 Message generated for change (Comment added) made by danomatika You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=478070&aid=2724318...
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: puredata Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: ClaudiusMaximus (claudiusmaximus) Assigned to: Miller Puckette (millerpuckette) Summary: 'pd -alsa -send "; pd dsp 1"' fails with -nogui
Initial Comment: $ pd -alsa -send "; pd dsp 1" works fine
$ pd -alsa -nogui -send "; pd dsp 1" snd_pcm_open (output): Device or resource busy
if i send to a custom receiver and delay the message by 100ms it seems to work ok, but still, not perfect
at a guess there's a race condition somewhere, and using the gui slows it down enough to work? just a guess though
tested on GNU/Linux/Debian/Lenny/pure:dyne with pd-0.41 may also affect other sound APIs, but I haven't tested with anything other than ALSA
----------------------------------------------------------------------
Comment By: Dan Wilcox (danomatika) Date: 2009-06-15 05:51
Message: Again in Ubuntu Jaunty,
Running the same startup patch which loadbangs "pd dsp 1" in pd-extended 0.40.3 with "-rt" yields the same problem. I suppose in realtime mode, pd runs too fast to avoid the race condition.
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody) Date: 2009-06-15 05:47
Message: Confirmed in pd-extended 0.41.4 on Ubuntu Jaunty.
Cannot open the soundcard when starting pd with "pd -nogui -alsa -audiodev 4 ~/StartupPatch.pd" where "StartupPatch.pd" loadbangs a "pd dsp 1" message:
snd_pcm_open (input): Device or resource busy snd_pcm_open (output): Device or resource busy
Using jack, "-jack -channels 2" connects ok. I have not not tried oss.
Doing the same on pd-extended 0.40.3 works fine.
Well, at least I can just delay the dsp switch for now to make it work.
----------------------------------------------------------------------
Comment By: IOhannes m zmlnig (zmoelnig) Date: 2009-04-02 09:22
Message: oh forgot to say: OSS: /dev/dsp (writeonly): Device or resource busy /dev/dsp (readonly): Device or resource busy
with jack it seems to work fine (though i often have other problems with jack, so i don't know how reliable this is)
----------------------------------------------------------------------
Comment By: IOhannes m zmlnig (zmoelnig) Date: 2009-04-02 09:20
Message: confirmed with Pd-0.42.4 (debian lenny/squeeze; x86)
however i thought the proper way to specify the send-message was "pd dsp 1" (without the leading semicolon)
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=478070&aid=2724318...