AudioStream

A stream of audio

Members

Functions

bitrate
size_t bitrate()

Gets the bitrate of the stream

canSeek
bool canSeek()

Gets whether the file can be seeked

getInfo
AudioInfo getInfo()

Try to get the information about the audio

readAll
ubyte[] readAll()

Read all samples from the stream till the end

readSamples
ptrdiff_t readSamples(ubyte[] toArray)

Read samples from the audio stream in to the array

seek
void seek(size_t location)

Seek to a PCM location in the stream

tell
size_t tell()

Get the position in the stream

Variables

channels
int channels;

The amount of channels in the audio stream

format
Format format;

Audio format of the stream

Meta