PCM32.Sample

Stores information regarding to samples. IMPORTANT: Always call unloadSample for unloading samples from the memory.

Constructors

this
this(size_t length, ubyte* dataPtr, CodecType codec)
Undocumented in source.

Members

Functions

unloadSample
void unloadSample()

Unloads the sample from memory.

Variables

codec
CodecType codec;

Selects the codec type

dataPtr
ubyte* dataPtr;

Points to the first sample of the stream

flags
ushort flags;

Mainly for 32bit alignment, placeholder for future flags (stereo sample support?)

length
size_t length;

Length of sample

sampleFreq
float sampleFreq;

Overrides the *.pcm file's sampling frequency

Meta