hx3d
1
2D/3D Simple Game Framework
|
Convert an audio stream to the signed short format. More...
#include <s16_converter.hpp>
Public Member Functions | |
virtual void | onFunction (const int channel, const void *stream, const int length) override |
Audio effect function. More... | |
virtual void | onDone (const int channel) override |
Audio effect done function. More... | |
short * | getS16Stream () |
Get the stream in signed short format. 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. | |
Additional Inherited Members | |
![]() | |
bool | _processed |
Has the effect started ? | |
int | _channel |
Audio channel. | |
void * | _stream |
Sound stream. | |
int | _length |
Sound length. | |
Convert an audio stream to the signed short format.
Example code
Definition at line 54 of file s16_converter.hpp.
short * hx3d::audio::S16Converter::getS16Stream | ( | ) |
Get the stream in signed short format.
Definition at line 54 of file s16_converter.cpp.
|
overridevirtual |
Audio effect done function.
channel | Audio channel |
Reimplemented from hx3d::audio::Effect.
Definition at line 51 of file s16_converter.cpp.
|
overridevirtual |
Audio effect function.
channel | Audio channel |
stream | Audio stream |
length | Sample length |
Reimplemented from hx3d::audio::Effect.
Definition at line 29 of file s16_converter.cpp.