SamplePlayback struct

A sample playback handle to be used by the engine.

Contents

Public variables

sample_t** buf
A pointer to the original buffer.
channels_t channels
The number of channels.
long buf_size
The number of frames in the buffer.
long offset
The current offset in the buffer.
float volume
The volume to play the sample at (ratio from 0.0 to 2.0, where 1.0 is the normal volume).
nframes_t start_offset
Offset relative to the current processing cycle to start playing the sample.