SoundData

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 size in bytes of the Data.
Data:getStringGets the full Data as a string.Added since 0.9.0
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.Added since 0.9.0
SoundData:getBitsReturns the number of bits per sample. Removed in 0.9.0
SoundData:getChannelsReturns the number of channels in the stream.
SoundData:getDurationGets the duration of the sound data.Added since 0.9.0
SoundData:getSampleGets the sample at the specified position.
SoundData:getSampleCountReturns the sample count of the SoundData.Added since 0.9.0
SoundData:getSampleRateReturns the sample rate of the SoundData.
SoundData:setSampleSets the sample at the specified position.

Supertypes

See Also


Other Languages

Personal tools