On Wed, 2008-04-16 at 17:48 +0200, Lars Luthman wrote: > #include <lv2plugin.hpp> > #include "gain.peg" > > class Gain : public LV2::Plugin<Gain> { > public: > Gain(double rate) : LV2::Plugin<Gain>(p_n_ports) { } > void run(uint32_t nframes) { > for (uint32_t i = 0; i < nframes; ++i) > p(p_out)[i] = p(p_gain) * p(p_in); // <------- > } > }; > > static int _ = Gain::register_class("http://my.plugin/"); As pointed out by Pau Arumí Albó on LAD, the line marked with an arrow should of course be p(p_out)[i] = *p(p_gain) * p(p_in)[i]; The original code would give a compilation error. --ll
Attachment:
signature.asc
Description: This is a digitally signed message part
_______________________________________________ Linux-audio-user mailing list Linux-audio-user@xxxxxxxxxxxxxxxxxxxx http://lists.linuxaudio.org/mailman/listinfo/linux-audio-user