Async  0.18.0
Public Member Functions | Protected Member Functions
Async::AudioFilter Class Reference

A class for creating a wide range of audio filters. More...

#include <AsyncAudioFilter.h>

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

List of all members.

Public Member Functions

Protected Member Functions


Detailed Description

A class for creating a wide range of audio filters.

Author:
Tobias Blomberg / SM0SVX
Date:
2006-04-23

Definition at line 113 of file AsyncAudioFilter.h.


Constructor & Destructor Documentation

Async::AudioFilter::AudioFilter ( const std::string &  filter_spec,
int  sample_rate = INTERNAL_SAMPLE_RATE 
) [explicit]

Constuctor.

Parameters:
filter_specThe filter specification
sample_rateThe sampling rate

Destructor.


Member Function Documentation

void Async::AudioFilter::processSamples ( float *  dest,
const float *  src,
int  count 
) [protected, virtual]

Process incoming samples and put them into the output buffer.

Parameters:
destDestination buffer
srcSource buffer
countNumber of samples in the source buffer

This function is called from the base 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.

void Async::AudioFilter::reset ( void  )

Reset the filter state.

void Async::AudioFilter::setOutputGain ( float  gain) [inline]

Set the output gain of the filter.

Parameters:
gainThe gain to set

Definition at line 133 of file AsyncAudioFilter.h.


The documentation for this class was generated from the following file: