On Mon, Jul 11, 2005 at 02:49:22PM +0300, Artemio wrote:
>
> > Youre passed it as a paramter when your instantiated, just stash it
> > in the struct.
> Thanks for your help!
>
> But... I have added:
>
> typedef struct {
> unsigned long SampleRate;
> ...
> } MyPlugin;
>
> and then in runMyPlugin:
>
> ...
> unsigned long fSampleRate
> ...
> fSampleRate = psMyPlugin->SampleRate;
> ...
>
> But fSampleRate is always at 0... What am I missing?
You have to initialise the value in MyPlugin when you
create that struct inside instantiate().
-- FAReceived on Mon Jul 11 16:15:09 2005
This archive was generated by hypermail 2.1.8 : Mon Jul 11 2005 - 16:15:09 EEST