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 [[ | + | 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]] | ||
− | * [[ | + | * [[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
ByteData | Data object containing arbitrary bytes in an contiguous memory. |
CompressedData | Byte data compressed using a specific algorithm. |
CompressedImageData | Compressed image data designed to stay compressed in RAM and on the GPU. |
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. |
FileData | Data representing the contents of a file. |
FontData | A FontData represents a font. |
GlyphData | A GlyphData represents a drawable symbol of a font. |
ImageData | Raw (decoded) image data. |
SoundData | Contains raw audio samples. |
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. |