Difference between revisions of "SoundData"

m
Line 2: Line 2:
 
You can not play SoundData back directly. You must wrap a [[Source]] 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]]
 +
| headers=hide
 +
| ?Description
 +
}}
 +
{{#ask: [[Category:Functions]] [[parent::Data]]
 +
| headers=hide
 +
| ?Description
 +
}}
 +
{{#ask: [[Category:Functions]] [[parent::Object]]
 
| headers=hide
 
| headers=hide
 
| ?Description
 
| ?Description
Line 8: Line 16:
 
== Supertypes ==
 
== Supertypes ==
 
[[Data]]
 
[[Data]]
 +
[[Object]]
 
== See Also ==
 
== See Also ==
 
* [[parent::love.sound]]
 
* [[parent::love.sound]]

Revision as of 02:00, 13 February 2011

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

Functions

SoundData:copyFromCopies the specified section of the given SoundData into this one.
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.
SoundData:sliceCreates a new copy of a section of this SoundData.
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.
Object:releaseImmediately destroys the object's Lua reference.
Object:typeGets the type of the object as a string.
Object:typeOfChecks whether an object is of a certain type.

Supertypes

Data Object

See Also


Other Languages