Forums > Dev

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

January 13, 2007 | 10:45 pm

in either audio thread or message thread?

Thanks


January 13, 2007 | 11:07 pm

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


January 13, 2007 | 11:08 pm

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


January 13, 2007 | 11:14 pm

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


Viewing 4 posts - 1 through 4 (of 4 total)