aflibAudioPitch Class Reference

Controls the pitch of an audio source. More...

#include <aflibAudioPitch.h>

Inheritance diagram for aflibAudioPitch:

aflibAudioSampleRateCvt aflibAudio aflibChain aflibMemCache List of all members.

Public Member Functions

 aflibAudioPitch (aflibAudio &audio, double factor, bool linear_interpolation=FALSE, bool high_quality=FALSE, bool filter_interpolation=FALSE)
 Constructor.
 ~aflibAudioPitch ()
 Destructor.
void setInputConfig (const aflibConfig &cfg)
 Sets the input and output sample rates of this class.
const char * getName () const
 Returns the name of the derived class.

Detailed Description

Controls the pitch of an audio source.

This class is derived from the aflibAudioSampleRateCvt class. It only overrides the setInputConfig and getName functions. This is so that it can keep the output and input sample rates the same even thought they are changing. This gives the illusion of pitch changing.


Constructor & Destructor Documentation

aflibAudioPitch::aflibAudioPitch aflibAudio audio,
double  factor,
bool  linear_interpolation = FALSE,
bool  high_quality = FALSE,
bool  filter_interpolation = FALSE
 

Constructor.

This constructor overides the aflibAudioSampleRateCvt base class constructor. It provides the ability to set the quality of the sample rate conversion and the sample rate conversion factor. For more information on these see the documentation for the aflibAudioSampleRateCvt constructor.


Member Function Documentation

void aflibAudioPitch::setInputConfig const aflibConfig cfg  )  [virtual]
 

Sets the input and output sample rates of this class.

This function overrides the aflibAudioSampleRateCvt base class function. It will NOT change the output sample rate in the output audio configuration. By keeping the input and output sample rates the same even thought they are changing this gives the illusion of pitch changing.

Reimplemented from aflibAudioSampleRateCvt.


The documentation for this class was generated from the following files:
Generated on Tue Jan 16 12:42:56 2007 for Open Source Audio Library Project by  doxygen 1.4.6