AudioSource

Undocumented in source.

Constructors

this
this()
Undocumented in source.

Members

Functions

calcParams
void calcParams()

recalculate some parameters after format change or after generation

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)

load data into buffer

lock
void lock()
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

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.
unlock
void unlock()
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

volume
float volume [@property getter]

get audio source volume (0 .. 1.0f)

volume
float volume [@property setter]

set audio source volume (0 .. 1.0f)

Variables

_lock
Mutex _lock;
Undocumented in source.
_unityVolume
bool _unityVolume;
Undocumented in source.
_volume
float _volume;
Undocumented in source.
_zeroVolume
bool _zeroVolume;
Undocumented in source.
bitsPerSample
int bitsPerSample;
Undocumented in source.
blockAlign
int blockAlign;
Undocumented in source.
channels
int channels;
Undocumented in source.
sampleFormat
SampleFormat sampleFormat;
Undocumented in source.
samplesPerSecond
int samplesPerSecond;
Undocumented in source.

Meta