Menu

#411 turning off dsp with loadbang doesn't work

open
nobody
puredata (322)
5
2009-05-22
2009-05-22
Anonymous
No

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

Discussion

  • Nobody/Anonymous

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

     
  • Claude Heiland-Allen

    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....

     

Anonymous
Anonymous

Add attachments
Cancel