[linux-audio-dev] LADSPA: getting sample rate

Artemio artemio at kdemail.net
Mon Jul 11 11:49:22 UTC 2005


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


Thanks again,
A.



More information about the Linux-audio-dev mailing list