Async::AudioAmp Class Reference
An audio pipe class for amplification/attenuation of an audio stream.
More...
#include <AsyncAudioAmp.h>
List of all members.
Public Member Functions
- AudioAmp (void)
- Default constuctor.
- ~AudioAmp (void)
- Destructor.
- void setGain (float gain_db)
- Set the gain to use.
- float gain (void) const
- Read the gain.
Protected Member Functions
- void processSamples (float *dest, const float *src, int count)
- Process incoming samples and put them into the output buffer.
Detailed Description
An audio pipe class for amplification/attenuation of an audio stream.
- Author:
- Tobias Blomberg / SM0SVX
- Date:
- 2006-07-08
Use this class to amplify or attenuate an audio stream.
Definition at line 112 of file AsyncAudioAmp.h.
Constructor & Destructor Documentation
Async::AudioAmp::AudioAmp |
( |
void |
|
) |
[inline] |
Async::AudioAmp::~AudioAmp |
( |
void |
|
) |
[inline] |
Member Function Documentation
void Async::AudioAmp::setGain |
( |
float |
gain_db |
) |
[inline] |
Set the gain to use.
- Parameters:
-
| gain_db | The gain given in dB |
Definition at line 129 of file AsyncAudioAmp.h.
float Async::AudioAmp::gain |
( |
void |
|
) |
const [inline] |
Read the gain.
- Returns:
- Return the gain in dB
Definition at line 135 of file AsyncAudioAmp.h.
void Async::AudioAmp::processSamples |
( |
float * |
dest, |
|
|
const float * |
src, |
|
|
int |
count | |
|
) |
| | [inline, protected, virtual] |
Process incoming samples and put them into the output buffer.
- Parameters:
-
| dest | Destination buffer |
| src | Source buffer |
| count | Number of samples in the source buffer |
This function should be reimplemented by the inheriting class to do the actual processing of the incoming samples. All samples must be processed, otherwise they are lost and the output buffer will contain garbage.
Implements Async::AudioProcessor.
Definition at line 139 of file AsyncAudioAmp.h.
The documentation for this class was generated from the following file: