Audio

A generic audio stream that can be read by OpenAL

Constructors

this
this(MemFile file)

Creates Audio from memory

this
this(string file)

Creates audio from file

Members

Functions

read
ulong read(byte* ptr, size_t bufferLength)

Read bufferLength bytes from stream to ptr

readAll
byte[] readAll(uint bitdepth, bool signed)
Undocumented in source. Be warned that the author may not have intended to support it.
seek
void seek(long position)

Seek to a byte in the stream

seekSample
void seekSample(long position)

Seek to a sample in the stream

tell
size_t tell()

Returns the position in the stream

Variables

info
AudioInfo info;

Information about the audio file

Meta