Difference between revisions of "SoundData"

Line 1: Line 1:
 
Contains raw audio samples.
 
Contains raw audio samples.
 
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.
 +
== Constructors ==
 +
{{#ask: [[Category:Functions]] [[Constructs::SoundData]] [[Since::<071]]
 +
| headers=hide
 +
| default=None.
 +
| ?Description
 +
}}
 
== Functions ==
 
== Functions ==
 
{{#ask: [[Category:Functions]] [[parent::SoundData||Data||Object]] [[Since::<071]]
 
{{#ask: [[Category:Functions]] [[parent::SoundData||Data||Object]] [[Since::<071]]

Revision as of 17:58, 25 March 2011

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

Constructors

love.sound.newSoundDataCreates a new SoundData.

Functions

Data:getPointerGets a pointer to the Data.
Data:getSizeGets the Data's size in bytes.
Object:typeGets the type of the object as a string.
Object:typeOfChecks whether an object is of a certain type.
SoundData:getBitsReturns the number of bits per sample.
SoundData:getChannelsReturns the number of channels in the stream.
SoundData:getSampleGets the value of the samplepoint at the specified position.
SoundData:getSampleRateReturns the sample rate of the SoundData.
SoundData:setSampleSets the sample at the specified position.

Supertypes

Data Object

See Also


Other Languages