can I get a callback to let me know when dsp has been disabled?

Jan 13, 2007 at 10:45pm

can I get a callback to let me know when dsp has been disabled?

in either audio thread or message thread?

Thanks

#29662
Jan 13, 2007 at 11:07pm

On Jan 13, 2007, at 2:45 PM, Graham Wakefield wrote:

> in either audio thread or message thread?

from the list archives:

dspstate

e.g.


addmess((method)foo_dspstate, “dspstate”, A_CANT, 0);

void foo_dspstate(t_foo *x, long n)
{
if (n) {
//dsp has been turned on
} else {
//dsp has been turned off
}
}

-Joshua

#93149
Jan 13, 2007 at 11:08pm

ok found it: long sys_getdspstate(void);

On Jan 13, 2007, at 2:45 PM, Graham Wakefield wrote:

> in either audio thread or message thread?
>
> Thanks

#93150
Jan 13, 2007 at 11:14pm

Thanks – that’s better. Will check archives in future.

On Jan 13, 2007, at 3:07 PM, Joshua Kit Clayton wrote:

> addmess((method)foo_dspstate, “dspstate”, A_CANT, 0);
> …
>
> void foo_dspstate(t_foo *x, long n)
> {
> if (n) {
> //dsp has been turned on
> } else {
> //dsp has been turned off
> }
> }

#93151

You must be logged in to reply to this topic.