CompressorEffect Class Reference

#include <compressor.h>

Inherits PluginAClient.

Collaboration diagram for CompressorEffect:

Collaboration graph
[legend]

Public Member Functions

 CompressorEffect (PluginServer *server)
 ~CompressorEffect ()
int is_multichannel ()
int is_realtime ()
void read_data (KeyFrame *keyframe)
void save_data (KeyFrame *keyframe)
int process_buffer (int64_t size, double **buffer, int64_t start_position, int sample_rate)
double calculate_gain (double input)
double calculate_output (double x)
int load_defaults ()
int save_defaults ()
void reset ()
void update_gui ()
void delete_dsp ()

Data Fields

double ** input_buffer
int64_t input_size
int64_t input_allocated
int64_t input_start
double next_target
double previous_target
int target_samples
int target_current_sample
double current_value
ArrayList< compressor_point_tlevels
double min_x
double min_y
double max_x
double max_y

Detailed Description

Definition at line 185 of file compressor.h.


Constructor & Destructor Documentation

CompressorEffect::CompressorEffect ( PluginServer server  ) 

Definition at line 51 of file compressor.C.

References PLUGIN_CONSTRUCTOR_MACRO, and reset().

Here is the call graph for this function:

CompressorEffect::~CompressorEffect (  ) 

Definition at line 58 of file compressor.C.

References delete_dsp(), levels, PLUGIN_DESTRUCTOR_MACRO, and ArrayList< TYPE >::remove_all().

Here is the call graph for this function:


Member Function Documentation

int CompressorEffect::is_multichannel (  )  [virtual]

Reimplemented from PluginClient.

Definition at line 97 of file compressor.C.

int CompressorEffect::is_realtime (  )  [virtual]

Reimplemented from PluginClient.

Definition at line 96 of file compressor.C.

void CompressorEffect::read_data ( KeyFrame keyframe  )  [virtual]

Reimplemented from PluginClient.

Definition at line 101 of file compressor.C.

References KeyFrame::data, XMLTag::get_property(), input, FileXML::read_tag(), FileXML::set_shared_string(), FileXML::tag, and XMLTag::title_is().

Here is the call graph for this function:

void CompressorEffect::save_data ( KeyFrame keyframe  )  [virtual]

int CompressorEffect::process_buffer ( int64_t  size,
double **  buffer,
int64_t  start_position,
int  sample_rate 
) [virtual]

double CompressorEffect::calculate_gain ( double  input  ) 

Definition at line 612 of file compressor.C.

References calculate_output().

Referenced by process_buffer().

Here is the call graph for this function:

double CompressorEffect::calculate_output ( double  x  ) 

int CompressorEffect::load_defaults (  )  [virtual]

Reimplemented from PluginClient.

Definition at line 165 of file compressor.C.

References BCASTDIR, and BCTEXTLEN.

int CompressorEffect::save_defaults (  )  [virtual]

Reimplemented from PluginClient.

Definition at line 192 of file compressor.C.

References BCTEXTLEN.

void CompressorEffect::reset (  ) 

void CompressorEffect::update_gui (  )  [virtual]

Reimplemented from PluginClient.

Definition at line 218 of file compressor.C.

void CompressorEffect::delete_dsp (  ) 

Definition at line 65 of file compressor.C.

References input_allocated, input_buffer, input_size, and PluginClient::total_in_buffers.

Referenced by ~CompressorEffect().


Field Documentation

Definition at line 214 of file compressor.h.

Referenced by delete_dsp(), process_buffer(), and reset().

Definition at line 216 of file compressor.h.

Referenced by delete_dsp(), process_buffer(), and reset().

Definition at line 218 of file compressor.h.

Referenced by delete_dsp(), process_buffer(), and reset().

Definition at line 220 of file compressor.h.

Referenced by process_buffer(), and reset().

Definition at line 223 of file compressor.h.

Referenced by process_buffer(), and reset().

Definition at line 225 of file compressor.h.

Referenced by process_buffer(), and reset().

Definition at line 227 of file compressor.h.

Referenced by process_buffer(), and reset().

Definition at line 229 of file compressor.h.

Referenced by process_buffer(), and reset().

Definition at line 231 of file compressor.h.

Referenced by process_buffer(), and reset().

Definition at line 234 of file compressor.h.

Referenced by calculate_output(), and process_buffer().

Definition at line 234 of file compressor.h.

Referenced by calculate_output(), and process_buffer().

Definition at line 235 of file compressor.h.

Referenced by calculate_output(), and process_buffer().

Definition at line 235 of file compressor.h.

Referenced by calculate_output(), and process_buffer().


The documentation for this class was generated from the following files:

Generated on Mon Apr 28 14:19:27 2008 for Cinelerra by  doxygen 1.5.5