- filename
string filename [@property getter]
- filename
string filename [@property setter]
set current filename and load MP3 file; returns true if successful
- loaded
bool loaded [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
- loopEnd
float loopEnd [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
- loopStart
float loopStart [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
- paused
bool paused [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
- paused
bool paused [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
- position
PlayPosition position [@property getter]
get current play position and total track length (seconds)
- position
float position [@property setter]
set current play position (seconds)
- sourcePosition
int sourcePosition [@property getter]
returns playback position frame number
- sourcePosition
int sourcePosition [@property setter]
sets playback position frame number
- _lock
Mutex _lock;
Undocumented in source.
- lock
void lock()
Undocumented in source. Be warned that the author may not have intended to support it.
- unlock
void unlock()
Undocumented in source. Be warned that the author may not have intended to support it.
- volume
float volume [@property getter]
get audio source volume (0 .. 1.0f)
- volume
float volume [@property setter]
set audio source volume (0 .. 1.0f)
- _volume
float _volume;
Undocumented in source.
- _zeroVolume
bool _zeroVolume;
Undocumented in source.
- _unityVolume
bool _unityVolume;
Undocumented in source.
- sampleFormat
SampleFormat sampleFormat;
Undocumented in source.
- samplesPerSecond
int samplesPerSecond;
Undocumented in source.
- channels
int channels;
Undocumented in source.
- bitsPerSample
int bitsPerSample;
Undocumented in source.
- blockAlign
int blockAlign;
Undocumented in source.
- calcParams
void calcParams()
recalculate some parameters after format change or after generation
- setFormat
void setFormat(SampleFormat format, int channels, int samplesPerSecond, int bitsPerSample, int blockAlign)
Undocumented in source. Be warned that the author may not have intended to support it.
- onFormatChanged
void onFormatChanged()
Undocumented in source. Be warned that the author may not have intended to support it.
- putSamples
void putSamples(ubyte* buf, int sample1, int sample2)
put samples in int format
- putSamples
void putSamples(ubyte* buf, float sample1, float sample2)
put samples in float format
- generateSilence
void generateSilence(int frameCount, ubyte* buf)
Undocumented in source. Be warned that the author may not have intended to support it.
- loadData
bool loadData(int frameCount, ubyte* buf, uint flags)