AudioStream

An AudioStream is an object that reads and decodes compressed sound data. All Source objects are powered by AudioStreams.

Usually you can just use Sources without having to deal with AudioStreams, but sometimes you may need low-level access to the audio stream.

Constructor

lovr.data.newAudioStreamCreate a new AudioStream.

Methods

AudioStream:getSampleRateGet the sample rate of the AudioStream.
AudioStream:decodeDecode the next chunk of audio in the AudioStream.
AudioStream:getChannelCountGet the number of channels in the AudioStream.
AudioStream:getBitDepthGet the bit depth of the AudioStream.
AudioStream:getDurationGet the duration of the AudioStream.

See also