#include <aflibAudioStereoToMono.h>
Inheritance diagram for aflibAudioStereoToMono:
Public Types | |
enum | aflib_mix_type { AFLIB_MIX_UNDEF, AFLIB_MIX_BOTH, AFLIB_MIX_CHAN1, AFLIB_MIX_CHAN2 } |
Public Methods | |
aflibAudioStereoToMono (aflibAudio &audio, aflibAudioStereoToMono::aflib_mix_type mix=AFLIB_MIX_BOTH, int amplitude=100) | |
Constructor for type of mixing operation. More... | |
~aflibAudioStereoToMono () | |
Destructor. More... | |
void | setMixType (aflibAudioStereoToMono::aflib_mix_type mix) |
Sets the type of mixing to perform. More... | |
void | setAmplitude (int amplitude) |
Sets the amplitude. More... | |
const char * | getName () const |
Returns the name of the derived class. More... |
This class implements converting a stereo or mono signal into a mono signal. It will output either a mix of both channels 1 and 2 inputs, channel 1, or channel 2.
This class is a convience class derived from aflibAudioMixer since this is a commonly used operation. It takes either a mono or stereo signal so that the programmer does not need to worry about the source.
|
|
|
Constructor for type of mixing operation. This constructor allows one to mix any input to a mono signal. It will mix both channels (aflibAudioStereoToMono::AFLIB_MIX_BOTH), or channel 1 (aflibAudioStereoToMono::AFLIB_MIX_CHAN1), or channel 2 (aflibAudioStereoToMono::AFLIB_MIX_CHAN2). |
|
Destructor.
|
|
Returns the name of the derived class.
Reimplemented from aflibAudioMixer. |
|
Sets the amplitude. This function allows one to change the amplitude. values between 1 and 100 are supported. |
|
Sets the type of mixing to perform. This function allows one to change the type of mixing performed. One can select both channels (aflibAudioStereoToMono::AFLIB_MIX_BOTH), or channel 1 (aflibAudioStereoToMono::AFLIB_MIX_CHAN1), or channel 2 (aflibAudioStereoToMono::AFLIB_MIX_CHAN2). |