Class Sound
Sound that is fully kept in memory
Properties
Name | Type | Description |
data [get]
|
ubyte[] | Raw byte data
|
dup [get]
|
Sound | Make exact copy of the sound
|
bitDepth [get]
|
uint | Number of bits in each sample channel
|
channels [get]
|
uint | Number of channels per sample
|
duration [get]
|
double | Duration, in seconds
|
sampleFormat [get]
|
SampleFormat | Sample format
|
sampleRate [get]
|
uint | Number of samples per second, in Hz
|
sampleSize [get]
|
uint | Number of bytes in each sample (bitDepth / 8 * channels)
|
size [get]
|
ulong | Number of samples
|
Methods
Name | Description |
createSameFormat
(ch, dur)
|
Make empty sound of the same format
|
reset
()
|
Return to the start of a stream
|
stream
(buffer)
|
Fill in the buffer with next portion of sound data.
Function returns actual number of bytes written.
At the end of a stream, zero is returned.
|