Panda3D
|
Stores a configuration for a set of audio DSP filters. More...
#include "filterProperties.h"
Classes | |
struct | FilterConfig |
Public Types | |
typedef pvector< FilterConfig > | ConfigVector |
enum | FilterType { FT_lowpass, FT_highpass, FT_echo, FT_flange, FT_distort, FT_normalize, FT_parameq, FT_pitchshift, FT_chorus, FT_reverb, FT_compress } |
Public Member Functions | |
void | add_chorus (float drymix, float wet1, float wet2, float wet3, float delay, float rate, float depth, float feedback) |
Add a chorus filter to the end of the DSP chain. | |
void | add_compress (float threshold, float attack, float release, float gainmakeup) |
Add a compress filter to the end of the DSP chain. | |
void | add_distort (float level) |
Add a distort filter to the end of the DSP chain. | |
void | add_echo (float drymix, float wetmix, float delay, float decayratio) |
Add a echo filter to the end of the DSP chain. | |
void | add_flange (float drymix, float wetmix, float depth, float rate) |
Add a flange filter to the end of the DSP chain. | |
void | add_highpass (float cutoff_freq, float resonance_q) |
Add a highpass filter to the end of the DSP chain. | |
void | add_lowpass (float cutoff_freq, float resonance_q) |
Add a lowpass filter to the end of the DSP chain. | |
void | add_normalize (float fadetime, float threshold, float maxamp) |
Add a normalize filter to the end of the DSP chain. | |
void | add_parameq (float center_freq, float bandwidth, float gain) |
Add a parameq filter to the end of the DSP chain. | |
void | add_pitchshift (float pitch, float fftsize, float overlap) |
Add a pitchshift filter to the end of the DSP chain. | |
void | add_reverb (float drymix, float wetmix, float roomsize, float damp, float width) |
Add a reverb filter to the end of the DSP chain. | |
void | clear () |
Removes all DSP postprocessing. | |
virtual TypeHandle | force_init_type () |
const ConfigVector & | get_config () |
Intended for use by AudioManager and AudioSound implementations: allows access to the config vector. | |
virtual TypeHandle | get_type () const |
Static Public Member Functions | |
static TypeHandle | get_class_type () |
static void | init_type () |
This function is declared non-inline to work around a compiler bug in g++ 2.96. |
Stores a configuration for a set of audio DSP filters.
Definition at line 26 of file filterProperties.h.
void FilterProperties::add_chorus | ( | float | drymix, |
float | wet1, | ||
float | wet2, | ||
float | wet3, | ||
float | delay, | ||
float | rate, | ||
float | depth, | ||
float | feedback | ||
) | [inline] |
Add a chorus filter to the end of the DSP chain.
Definition at line 112 of file filterProperties.I.
void FilterProperties::add_compress | ( | float | threshold, |
float | attack, | ||
float | release, | ||
float | gainmakeup | ||
) | [inline] |
Add a compress filter to the end of the DSP chain.
Definition at line 132 of file filterProperties.I.
void FilterProperties::add_distort | ( | float | level | ) | [inline] |
Add a distort filter to the end of the DSP chain.
Definition at line 72 of file filterProperties.I.
void FilterProperties::add_echo | ( | float | drymix, |
float | wetmix, | ||
float | delay, | ||
float | decayratio | ||
) | [inline] |
Add a echo filter to the end of the DSP chain.
Definition at line 52 of file filterProperties.I.
void FilterProperties::add_flange | ( | float | drymix, |
float | wetmix, | ||
float | depth, | ||
float | rate | ||
) | [inline] |
Add a flange filter to the end of the DSP chain.
Definition at line 62 of file filterProperties.I.
void FilterProperties::add_highpass | ( | float | cutoff_freq, |
float | resonance_q | ||
) | [inline] |
Add a highpass filter to the end of the DSP chain.
Definition at line 42 of file filterProperties.I.
void FilterProperties::add_lowpass | ( | float | cutoff_freq, |
float | resonance_q | ||
) | [inline] |
Add a lowpass filter to the end of the DSP chain.
Definition at line 32 of file filterProperties.I.
void FilterProperties::add_normalize | ( | float | fadetime, |
float | threshold, | ||
float | maxamp | ||
) | [inline] |
Add a normalize filter to the end of the DSP chain.
Definition at line 82 of file filterProperties.I.
void FilterProperties::add_parameq | ( | float | center_freq, |
float | bandwidth, | ||
float | gain | ||
) | [inline] |
Add a parameq filter to the end of the DSP chain.
Definition at line 92 of file filterProperties.I.
void FilterProperties::add_pitchshift | ( | float | pitch, |
float | fftsize, | ||
float | overlap | ||
) | [inline] |
Add a pitchshift filter to the end of the DSP chain.
Definition at line 102 of file filterProperties.I.
void FilterProperties::add_reverb | ( | float | drymix, |
float | wetmix, | ||
float | roomsize, | ||
float | damp, | ||
float | width | ||
) | [inline] |
Add a reverb filter to the end of the DSP chain.
Definition at line 122 of file filterProperties.I.
void FilterProperties::clear | ( | ) | [inline] |
Removes all DSP postprocessing.
Definition at line 22 of file filterProperties.I.
const FilterProperties::ConfigVector & FilterProperties::get_config | ( | ) | [inline] |
Intended for use by AudioManager and AudioSound implementations: allows access to the config vector.
Definition at line 143 of file filterProperties.I.
Referenced by AudioManager::configure_filters(), and AudioSound::configure_filters().
static void FilterProperties::init_type | ( | ) | [inline, static] |
This function is declared non-inline to work around a compiler bug in g++ 2.96.
Making it inline seems to cause problems in the optimizer.
Reimplemented from TypedReferenceCount.
Definition at line 78 of file filterProperties.h.
References TypedReferenceCount::init_type().