SoundData
Contains raw audio samples. You can not play SoundData back directly. You must wrap a Source object around it.
Functions
SoundData:copyFrom | Copies the specified section of the given SoundData into this one. |
SoundData:getBitDepth | Returns the number of bits per sample. |
SoundData:getBits | Returns the number of bits per sample. |
SoundData:getChannelCount | Returns the number of channels in the SoundData. |
SoundData:getChannels | Returns the number of channels in the stream. |
SoundData:getDuration | Gets the duration of the sound data. |
SoundData:getSample | Gets the value of the samplepoint at the specified position. |
SoundData:getSampleCount | Returns the sample count of the SoundData. |
SoundData:getSampleRate | Returns the sample rate of the SoundData. |
SoundData:setSample | Sets the sample at the specified position. |
SoundData:slice | Creates a new copy of a section of this SoundData. |
Data:clone | Creates a new copy of the Data object. |
Data:getFFIPointer | Gets an FFI pointer to the Data. |
Data:getPointer | Gets a pointer to the Data. |
Data:getSize | Gets the Data's size in bytes. |
Data:getString | Gets the full Data as a string. |
Object:release | Immediately destroys the object's Lua reference. |
Object:type | Gets the type of the object as a string. |
Object:typeOf | Checks whether an object is of a certain type. |
Supertypes
See Also
Other Languages
Dansk –
Deutsch –
English –
Español –
Français –
Indonesia –
Italiano –
Lietuviškai –
Magyar –
Nederlands –
Polski –
Português –
Română –
Slovenský –
Suomi –
Svenska –
Türkçe –
Česky –
Ελληνικά –
Български –
Русский –
Српски –
Українська –
עברית –
ไทย –
日本語 –
正體中文 –
简体中文 –
Tiếng Việt –
한국어
More info