Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

aflibEditClip Class Reference

Data class used by aflibAudioEdit. More...

#include <aflibEditClip.h>

List of all members.

Public Methods

 aflibEditClip ()
 Constructor. More...

 aflibEditClip (int input, long long start_samples_o, long long stop_samples_o, long long start_samples_i, long long stop_samples_i, double sample_rate_factor)
 Constructor with parameters. More...

 ~aflibEditClip ()
 Destructor. More...

bool operator< (const aflibEditClip &clip) const
 Operator to determine what clip is before another in output space. More...

void setInput (int input)
 Set the input that a clip uses. More...

int getInput () const
 Get the input that a clip uses. More...

void setStartSamplesOutput (long long start_samples_o)
 Sets the start samples location for the output. More...

long long getStartSamplesOutput () const
 Gets the start samples location for the output. More...

void setStopSamplesOutput (long long stop_samples_o)
 Sets the stop samples location for the output. More...

long long getStopSamplesOutput () const
 Gets the stop samples location for the output. More...

void setStartSamplesInput (long long start_samples_i)
 Sets the start samples location for the input. More...

long long getStartSamplesInput () const
 Gets the start samples location for the input. More...

void setStopSamplesInput (long long stop_samples_i)
 Sets the stop samples location for the input. More...

long long getStopSamplesInput () const
 Gets the stop samples location for the input. More...

void setSampleRateFactor (double sample_rate_factor)
 Sets the sample rate conversion factor. More...

double getSampleRateFactor () const
 Gets the sample rate conversion factor. More...

int compare (const aflibEditClip &clip)
 Compares two date / time objects. More...


Detailed Description

Data class used by aflibAudioEdit.

This stores an audio segment by the start and stop samples for the input and output. It will also compare two objects and determine which one is before the other.


Constructor & Destructor Documentation

aflibEditClip::aflibEditClip  
 

Constructor.

aflibEditClip::aflibEditClip int    input,
long long    start_samples_o,
long long    stop_samples_o,
long long    start_samples_i,
long long    stop_samples_i,
double    sample_rate_factor
 

Constructor with parameters.

aflibEditClip::~aflibEditClip  
 

Destructor.


Member Function Documentation

int aflibEditClip::compare const aflibEditClip &    clip
 

Compares two date / time objects.

This function will compare an audio clip with this one. It will return one of three possible values. -1 : "this" clip is before "clip" clip sequentially. 0 : "this" starts within "clip" clip 1 : "this" clip is after "clip" clip

int aflibEditClip::getInput   const
 

Get the input that a clip uses.

double aflibEditClip::getSampleRateFactor   const
 

Gets the sample rate conversion factor.

long long aflibEditClip::getStartSamplesInput   const
 

Gets the start samples location for the input.

long long aflibEditClip::getStartSamplesOutput   const
 

Gets the start samples location for the output.

long long aflibEditClip::getStopSamplesInput   const
 

Gets the stop samples location for the input.

long long aflibEditClip::getStopSamplesOutput   const
 

Gets the stop samples location for the output.

bool aflibEditClip::operator< const aflibEditClip &    clip const
 

Operator to determine what clip is before another in output space.

void aflibEditClip::setInput int    input
 

Set the input that a clip uses.

void aflibEditClip::setSampleRateFactor double    sample_rate_factor
 

Sets the sample rate conversion factor.

If an input is at 22050 Hz and the output will be 44100 then the sample rate conversion factor will be 2.0. Thus there will be twice as many samples in the output as are in the input.

void aflibEditClip::setStartSamplesInput long long    start_samples_i
 

Sets the start samples location for the input.

void aflibEditClip::setStartSamplesOutput long long    start_samples_o
 

Sets the start samples location for the output.

void aflibEditClip::setStopSamplesInput long long    stop_samples_i
 

Sets the stop samples location for the input.

void aflibEditClip::setStopSamplesOutput long long    stop_samples_o
 

Sets the stop samples location for the output.


The documentation for this class was generated from the following files:
Generated on Wed May 8 20:51:11 2002 for Open Source Audio Library Project by doxygen1.2.15