SoundData

A SoundData stores raw audio samples that make up a sound file. You can use Source objects to play SoundData.

Constructors

lovr.data.newSoundDataCreate a new SoundData.
AudioStream:decodeDecode the next chunk of audio in the AudioStream.
Microphone:getDataGet a new SoundData with recorded audio.

Methods

SoundData:getSampleGet a sample from the SoundData.
SoundData:setSampleModify a sample in the SoundData.
SoundData:getSampleCountGet the number of samples stored in the SoundData.
SoundData:getSampleRateGet the sample rate of the SoundData.
SoundData:getChannelCountGet the number of channels in the SoundData.
SoundData:getBitDepthGet the bit depth of the SoundData.
SoundData:getDurationGet the duration of the SoundData.

See also