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.

 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 ()
 Destructor.

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

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

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

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

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

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

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

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

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

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

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

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

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

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 at Tue Aug 7 22:18:07 2001 for Open Source Audio Library Project by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001