Difference between revisions of "SoundData"
m |
m |
||
Line 13: | Line 13: | ||
}} | }} | ||
== Supertypes == | == Supertypes == | ||
− | [[Data]] | + | * [[parent::Data]] |
− | [[Object]] | + | * [[parent::Object]] |
== See Also == | == See Also == | ||
* [[parent::love.sound]] | * [[parent::love.sound]] |
Revision as of 00:23, 16 October 2012
Contains raw audio samples. You can not play SoundData back directly. You must wrap a Source object around it.
Constructors
Decoder:decode | Decodes a chunk of audio data to a SoundData. |
RecordingDevice:getData | Gets all recorded audio SoundData stored in the device's internal ring buffer. |
love.sound.newSoundData | Creates a new SoundData. |
Functions
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. |
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. |
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