Drag[en]gine Game Engine
1.21
|
Synthesizer source. More...
#include <deSynthesizerSource.h>
Public Types | |
enum | eMixModes { emmBlend , emmAdd } |
Mixing modes. More... | |
typedef deTObjectReference< deSynthesizerSource > | Ref |
Type holding strong reference. More... | |
Public Types inherited from deObject | |
typedef deTObjectReference< deObject > | Ref |
Type holding strong reference. More... | |
Public Member Functions | |
Management | |
deSynthesizer * | GetSynthesizer () const |
Parent synthesizer. More... | |
void | SetSynthesizer (deSynthesizer *synthesizer) |
Set parent synthesizer. More... | |
bool | GetEnabled () const |
Source is enabled. More... | |
void | SetEnabled (bool enabled) |
Set if source is enabled. More... | |
eMixModes | GetMixMode () const |
Mixing mode. More... | |
void | SetMixMode (eMixModes mode) |
Set mixing mode. More... | |
float | GetBlendFactor () const |
Blend factor. More... | |
void | SetBlendFactor (float factor) |
Set blend factor. More... | |
float | GetMinVolume () const |
Volume minimum relative to speaker volume in the range from 0 to 1. More... | |
void | SetMinVolume (float volume) |
Set minimum volume relative to speaker volume in the range from 0 to 1. More... | |
float | GetMaxVolume () const |
Maximum volume relative to speaker volume in the range from 0 to 1. More... | |
void | SetMaxVolume (float volume) |
Set maximum volume relative to speaker volume in the range from 0 to 1. More... | |
float | GetMinPanning () const |
Minimum panning in the range from -1(left) to 1(right). More... | |
void | SetMinPanning (float panning) |
Set minimum panning in the range from -1(left) to 1(right). More... | |
float | GetMaxPanning () const |
Maximum panning in the range from -1(left) to 1(right). More... | |
void | SetMaxPanning (float panning) |
Set maximum panning in the range from -1(left) to 1(right). More... | |
deSynthesizerControllerTarget & | GetTargetBlendFactor () |
Blend factor target. More... | |
const deSynthesizerControllerTarget & | GetTargetBlendFactor () const |
deSynthesizerControllerTarget & | GetTargetVolume () |
Volume target. More... | |
const deSynthesizerControllerTarget & | GetTargetVolume () const |
deSynthesizerControllerTarget & | GetTargetPanning () |
Panning target. More... | |
const deSynthesizerControllerTarget & | GetTargetPanning () const |
Effects | |
int | GetEffectCount () const |
Number of effects. More... | |
deSynthesizerEffect * | GetEffectAt (int index) const |
Effect at index. More... | |
void | AddEffect (deSynthesizerEffect *effect) |
Add effect. More... | |
void | RemoveEffect (deSynthesizerEffect *effect) |
Remove effect. More... | |
void | RemoveAllEffects () |
Remove all effects. More... | |
Visiting | |
virtual void | Visit (deSynthesizerSourceVisitor &visitor) |
Visit source. More... | |
Public Member Functions inherited from deObject | |
int | GetRefCount () const |
Reference count. More... | |
void | AddReference () |
Add reference increasing reference count by 1. More... | |
void | FreeReference () |
Decrease reference count by one and delete object if count reaches 0. More... | |
deObject () | |
Create object with reference count of 1. More... | |
Constructors and Destructors | |
deSynthesizerSource () | |
Create synthesizer source. More... | |
virtual | ~deSynthesizerSource () |
Clean up synthesizer source. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from deObject | |
virtual | ~deObject () |
Clean up object. More... | |
Synthesizer source.
Type holding strong reference.
deSynthesizerSource::deSynthesizerSource | ( | ) |
Create synthesizer source.
|
protectedvirtual |
Clean up synthesizer source.
void deSynthesizerSource::AddEffect | ( | deSynthesizerEffect * | effect | ) |
Add effect.
|
inline |
Blend factor.
deSynthesizerEffect* deSynthesizerSource::GetEffectAt | ( | int | index | ) | const |
Effect at index.
int deSynthesizerSource::GetEffectCount | ( | ) | const |
Number of effects.
|
inline |
Source is enabled.
|
inline |
Maximum panning in the range from -1(left) to 1(right).
|
inline |
Maximum volume relative to speaker volume in the range from 0 to 1.
|
inline |
Minimum panning in the range from -1(left) to 1(right).
|
inline |
Volume minimum relative to speaker volume in the range from 0 to 1.
|
inline |
Mixing mode.
|
inline |
Parent synthesizer.
|
inline |
Blend factor target.
|
inline |
|
inline |
Panning target.
|
inline |
|
inline |
Volume target.
|
inline |
void deSynthesizerSource::RemoveAllEffects | ( | ) |
Remove all effects.
void deSynthesizerSource::RemoveEffect | ( | deSynthesizerEffect * | effect | ) |
Remove effect.
void deSynthesizerSource::SetBlendFactor | ( | float | factor | ) |
Set blend factor.
void deSynthesizerSource::SetEnabled | ( | bool | enabled | ) |
Set if source is enabled.
void deSynthesizerSource::SetMaxPanning | ( | float | panning | ) |
Set maximum panning in the range from -1(left) to 1(right).
void deSynthesizerSource::SetMaxVolume | ( | float | volume | ) |
Set maximum volume relative to speaker volume in the range from 0 to 1.
void deSynthesizerSource::SetMinPanning | ( | float | panning | ) |
Set minimum panning in the range from -1(left) to 1(right).
void deSynthesizerSource::SetMinVolume | ( | float | volume | ) |
Set minimum volume relative to speaker volume in the range from 0 to 1.
void deSynthesizerSource::SetMixMode | ( | eMixModes | mode | ) |
Set mixing mode.
void deSynthesizerSource::SetSynthesizer | ( | deSynthesizer * | synthesizer | ) |
Set parent synthesizer.
This function has to be used only by the deSynthesizer class to assign itself as a parent. Do not call this function directly.
|
virtual |
Visit source.
Reimplemented in deSynthesizerSourceWave, deSynthesizerSourceSynthesizer, deSynthesizerSourceSound, deSynthesizerSourceGroup, and deSynthesizerSourceChain.