Async::AudioAmp Class Reference

An audio pipe class for amplification/attenuation of an audio stream. More...

#include <AsyncAudioAmp.h>

Inheritance diagram for Async::AudioAmp:
Async::AudioProcessor Async::AudioSink Async::AudioSource

List of all members.

Public Member Functions

Protected Member Functions


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]

Default constuctor.

Definition at line 118 of file AsyncAudioAmp.h.

Async::AudioAmp::~AudioAmp ( void   )  [inline]

Destructor.

Definition at line 123 of file AsyncAudioAmp.h.


Member Function Documentation

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.

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.


The documentation for this class was generated from the following file:
Generated by  doxygen 1.6.2-20100208