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

Tom Szilagyi tszilagyi at users.sourceforge.net
Mon Jul 11 09:47:48 UTC 2005


On Mon, 11 Jul 2005 12:31:04 +0300, Artemio <artemio at kdemail.net> wrote:

> I am wondering, in my runMyPlugin() function, how do I get the sample
> rate value?

Hi,

the host communicates the actual samplerate as an argument to the
instantiate() function of your plugin. Practically, you store this
value in the instance data structure and refer to it whenever you
need to (in run() or anywhere else).


Tom



More information about the Linux-audio-dev mailing list