hx3d
1
2D/3D Simple Game Framework
|
Audio effect manipulation. More...
#include <effect.hpp>
Public Member Functions | |
virtual void | onFunction (const int channel, const void *stream, const int length) |
Audio effect function. More... | |
virtual void | onDone (const int channel) |
Audio effect done function. More... | |
int | getChannel () |
Get the audio channel related to the effect. More... | |
void * | getStream () |
Get the audio stream. More... | |
int | getSampleSize () |
Get the sample size. More... | |
bool | hasProcessed () |
Test if the effect has started. | |
Protected Attributes | |
bool | _processed |
Has the effect started ? | |
int | _channel |
Audio channel. | |
void * | _stream |
Sound stream. | |
int | _length |
Sound length. | |
Audio effect manipulation.
You can inherit the effect to use a custom function/filter on a channel.
Definition at line 32 of file effect.hpp.
int hx3d::audio::Effect::getChannel | ( | ) |
Get the audio channel related to the effect.
Definition at line 32 of file effect.cpp.
int hx3d::audio::Effect::getSampleSize | ( | ) |
void * hx3d::audio::Effect::getStream | ( | ) |
|
virtual |
Audio effect done function.
channel | Audio channel |
Reimplemented in hx3d::audio::S16Converter.
Definition at line 30 of file effect.cpp.
|
virtual |
Audio effect function.
channel | Audio channel |
stream | Audio stream |
length | Sample length |
Reimplemented in hx3d::audio::S16Converter.
Definition at line 29 of file effect.cpp.