OggStream

An Ogg Vorbis audio stream

Constructors

this
this(string file, bool bit16)

Opens the OGG Vorbis stream file

Destructor

~this
~this()

Deallocates on deconstruction

Members

Functions

bitrate
size_t bitrate()

Gets the bitrate

canSeek
bool canSeek()

Gets whether the file can be seeked

getInfo
AudioInfo getInfo()

Gets info about the OGG audio

iReadSamples
ptrdiff_t iReadSamples(ubyte[] toArray, size_t readLength)
Undocumented in source. Be warned that the author may not have intended to support it.
readSamples
ptrdiff_t readSamples(ubyte[] toArray)
Undocumented in source. Be warned that the author may not have intended to support it.
seek
void seek(size_t location)

Seek to a PCM location in the stream

tell
size_t tell()

Get the position in the stream

Inherited Members

From AudioStream

channels
int channels;

The amount of channels in the audio stream

format
Format format;

Audio format of the stream

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

canSeek
bool canSeek()

Gets whether the file can be seeked

seek
void seek(size_t location)

Seek to a PCM location in the stream

tell
size_t tell()

Get the position in the stream

bitrate
size_t bitrate()

Gets the bitrate of the stream

getInfo
AudioInfo getInfo()

Try to get the information about the audio

Meta