[PD-dev] [ pure-data-Bugs-2724318 ] 'pd -alsa -send "; pd dsp 1"' fails with -nogui

SourceForge.net noreply at sourceforge.net
Mon Aug 24 17:21:14 CEST 2009


Bugs item #2724318, was opened at 2009-04-01 04:23
Message generated for change (Comment added) made by cmauri
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=478070&aid=2724318&group_id=55736

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: Cesar Mauri-Loba (cmauri)
Date: 2009-08-24 17:21

Message:
Confirmed in pd 0.42-5 under WinXP SP3. These are the error messages:

Error number -9985 opening portaudio stream
Error message: Device unavailable

As a workaround I've added a delay after the loadbang that enables the
dsp.


----------------------------------------------------------------------

Comment By: Dan Wilcox (danomatika)
Date: 2009-06-15 12: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 12: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 16: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 16: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&group_id=55736




More information about the Pd-dev mailing list