Difference between revisions of "SoundData"

m (1 revision: Importing from potato (again).)
Line 1: Line 1:
 
 
Contains raw audio samples.
 
Contains raw audio samples.
You can not play SoundData back directly. You must wrap a [[Sound]] object around it.
+
You can not play SoundData back directly. You must wrap a [[Source]] object around it.
 
== Functions ==
 
== Functions ==
 
{{#ask: [[Category:Functions]] [[parent::SoundData]] OR [[parent::Data]]
 
{{#ask: [[Category:Functions]] [[parent::SoundData]] OR [[parent::Data]]
Line 12: Line 11:
 
* [[parent::love.sound]]
 
* [[parent::love.sound]]
 
* [[love.audio]]
 
* [[love.audio]]
* [[Sound]]
+
* [[Source]]
 
[[Category:Types]]
 
[[Category:Types]]
 
{{#set:Description=Contains raw audio samples.
 
{{#set:Description=Contains raw audio samples.
 
}}
 
}}

Revision as of 05:14, 24 March 2010

Contains raw audio samples. You can not play SoundData back directly. You must wrap a Source object around it.

Functions

ByteDataData object containing arbitrary bytes in an contiguous memory.
CompressedDataByte data compressed using a specific algorithm.
CompressedImageDataCompressed image data designed to stay compressed in RAM and on the GPU.
Data:cloneCreates a new copy of the Data object.
Data:getFFIPointerGets an FFI pointer to the Data.
Data:getPointerGets a pointer to the Data.
Data:getSizeGets the Data's size in bytes.
Data:getStringGets the full Data as a string.
FileDataData representing the contents of a file.
FontDataA FontData represents a font.
GlyphDataA GlyphData represents a drawable symbol of a font.
ImageDataRaw (decoded) image data.
SoundDataContains raw audio samples.
SoundData:getBitDepthReturns the number of bits per sample.
SoundData:getBitsReturns the number of bits per sample.
SoundData:getChannelCountReturns the number of channels in the SoundData.
SoundData:getChannelsReturns the number of channels in the stream.
SoundData:getDurationGets the duration of the sound data.
SoundData:getSampleGets the value of the samplepoint at the specified position.
SoundData:getSampleCountReturns the sample count of the SoundData.
SoundData:getSampleRateReturns the sample rate of the SoundData.
SoundData:setSampleSets the sample at the specified position.

Supertypes

Data

See Also