[PD-dev] [ pure-data-Bugs-2795202 ] turning off dsp with loadbang doesn't work

SourceForge.net noreply at sourceforge.net
Fri May 22 15:04:03 CEST 2009


Bugs item #2795202, was opened at 2009-05-22 04:37
Message generated for change (Comment added) made by claudiusmaximus
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=478070&aid=2795202&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: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: turning off dsp with loadbang doesn't work

Initial Comment:
If dsp is on, opening a patch with:
[loadbang]
|
[; pd dsp 0]

doesn't turn it off.
For an example, turn on dsp and open the help file for bang~

I tried it in pd 0.42-5 and pd-ext 0.41-4 rc1 on winxp


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

Comment By: ClaudiusMaximus (claudiusmaximus)
Date: 2009-05-22 13:04

Message:
This is because Pd saves the dsp state, turns off dsp when loading patches
and then restores the dsp state again when loading is complete.  So any
changes to dsp state while loading will be lost when the dsp state is
restored to what it was before loading.

Probably Pd should restore the dsp state before triggering the loadbangs.

Try swapping the order of the pd_doloadbang() and canvas_resume_dsp() at
the end of this file:

http://pure-data.svn.sourceforge.net/viewvc/pure-data/trunk/pd/src/m_binbuf.c?view=markup

But this "fix" might have other ramifications....

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

Comment By: Nobody/Anonymous (nobody)
Date: 2009-05-22 04:40

Message:
p.s.- inserting a [del 0] after the loadbang will make it work

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

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=478070&aid=2795202&group_id=55736




More information about the Pd-dev mailing list