[Stk] Realtime Effect Processing Using Callback

Stephen Sinclair sinclair at music.mcgill.ca
Mon Jan 5 17:26:34 PST 2009


On Mon, Jan 5, 2009 at 7:45 PM, BEN SHEPHERD <benshep at roadrunner.com> wrote:
> Stephen, I took another look after returning home tonight.  It seems that I
> was using the following method in main() to create the Delay object:
>
> Delay * delay = new Delay();
>
> This was being passed via openstream to the tick() function as "&delay".
>
> Changing the delay object creation to:
>
> Delay delay;
>
> Solves the problem and it seems to be working fine now.  I must have cobbled
> together different pieces of example code and not paid enough attention to
> pointer arithmetic.  Thanks for your help!

Yup, looks like you were passing in the address of the pointer instead
of what it was pointing to.  No problem. :)

Steve



More information about the Stk mailing list