I am trying to create a reverb plug-in a la LV2 by modifying the amplifier
example (amp.c etc.) and have a question.
My reverb is implemented as a C++ class named Multiverb. From my current
understanding of LV2 (and LADSPA), it appears that I should instantiate a
Multiverb object in "activate", apply it in "run" and delete it in
"deactivate". So the object needs to be accessible in all three functions.
I see two ways to do this:
1. Declare a pointer to a Multiverb object as a static variatle (static
Multiverb *revMono) near the top of the file containing the LV2
2. Declare a pointer to a Multiverb object as a member of the same
structure that contains the port variables.
I also need to have access to the sampling rate, which I can get when
"instantiate" is called. I can also save this as a static or a member of
the above mentioned structure.
Which of these is preferable or is there a better way?
Get latest updates about Open Source Projects, Conferences and News.