Difference between revisions of "SoundData"
m (1 revision: Imported docs from potato.) |
|||
Line 1: | Line 1: | ||
− | + | Contains raw audio samples. | |
+ | You can not play SoundData back directly. You must wrap a [[Sound]] object around it. | ||
== Functions == | == Functions == | ||
{{#ask: [[Category:Functions]] [[parent::SoundData]] OR [[parent::Data]] | {{#ask: [[Category:Functions]] [[parent::SoundData]] OR [[parent::Data]] | ||
Line 13: | Line 14: | ||
* [[Sound]] | * [[Sound]] | ||
[[Category:Types]] | [[Category:Types]] | ||
− | {{#set:Description=}} | + | {{#set:Description=Contains raw audio samples. |
+ | }} |
Revision as of 16:17, 14 February 2010
Contains raw audio samples. You can not play SoundData back directly. You must wrap a Sound 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. |