7 #include "gainwindow.h"
8 #include "pluginaclient.h"
14 int equivalent(GainConfig
&that
);
15 void copy_from(GainConfig
&that
);
16 void interpolate(GainConfig
&prev
,
20 int64_t current_frame
);
25 class Gain
: public PluginAClient
28 Gain(PluginServer
*server
);
31 int process_realtime(int64_t size
, double *input_ptr
, double *output_ptr
);
33 PLUGIN_CLASS_MEMBERS(GainConfig
, GainThread
)
34 void save_data(KeyFrame
*keyframe
);
35 void read_data(KeyFrame
*keyframe
);
45 class GainEngine
: public Thread
48 GainEngine(Gain
*plugin
);
51 int process_overlay(double *in
, double *out
, double &out1
, double &out2
, double level
, int64_t lowpass
, int64_t samplerate
, int64_t size
);
52 int process_overlays(int output_buffer
, int64_t size
);
53 int wait_process_overlays();
56 Mutex input_lock
, output_lock
;