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

Revision as of 22:59, 23 June 2012

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

Constructors

Decoder:decodeDecodes a chunk of audio data to a SoundData.
RecordingDevice:getDataGets all recorded audio SoundData stored in the device's internal ring buffer.
love.sound.newSoundDataCreates a new SoundData.

Functions

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.
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 Object

See Also


Other Languages