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 a new AudioStream.


AudioStream:getSampleRateGet the sample rate of the AudioStream.
AudioStream:appendAppend raw PCM audio data to this audio stream for playback.
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