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.newAudioStream | Create a new AudioStream. |
Methods
AudioStream:append | Append raw PCM audio data to this audio stream for playback. |
AudioStream:getBitDepth | Get the bit depth of the AudioStream. |
AudioStream:getChannelCount | Get the number of channels in the AudioStream. |
AudioStream:decode | Decode the next chunk of audio in the AudioStream. |
AudioStream:getDuration | Get the duration of the AudioStream. |
AudioStream:getSampleRate | Get the sample rate of the AudioStream. |
See also
lovr.data