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

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 Methods

 aflibAudioPitch (aflibAudio &audio, double factor, bool linear_interpolation=FALSE, bool high_quality=FALSE, bool filter_interpolation=FALSE)
 Constructor. More...

 ~aflibAudioPitch ()
 Destructor. More...

void setInputConfig (const aflibConfig &cfg)
 Sets the input and output sample rates of this class. More...

const char * getName () const
 Returns the name of the derived class. More...


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.

aflibAudioPitch::~aflibAudioPitch  
 

Destructor.


Member Function Documentation

const char* aflibAudioPitch::getName   const [inline, virtual]
 

Returns the name of the derived class.

Reimplemented from aflibAudioSampleRateCvt.

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 Wed May 8 20:51:09 2002 for Open Source Audio Library Project by doxygen1.2.15