canvas_stop_dsp() odd behavior

Brad Garton's icon

I can turn off audio from my external using canvas_stop_dsp(), but it turns it off REAL good -- for some reason I have to turn the dacs on *twice* after calling this function before the external_dsp() setup function gets called.

What I need to do is turn off the dacs and have the user reinitialize dsp when a certain message is received. canvas_stop_dsp() seemed like it would work, but it requires starting the dacs twice?

also, is there a way to get a listing of messages that can be sent to the dsp object via:

void *dspmess(t_symbol *mess)

?

eliott paris's icon

same problem for me too :

- canvas_start_dsp(); turn dsp on (and ezdac~ "foreground Color On" attr is set).

- canvas_stop_dsp(); don't turn the dsp off (but ezdac~ "foreground Color Off" attr is set)!

Timothy Place's icon

Hey Brad,

There is a vignette in the Max 6 documentation called "Controlling MSP with Messages" which lists all of the messages that we expose publicly for the dsp object.

Hope this helps!
Tim