SamplePlayback struct
#include <audio/sample_playback.h>
A sample playback handle to be used by the engine.
Contents
- Reference
Public variables
-
sample_
t** buf - A pointer to the original buffer.
-
channels_
t channels - The number of channels.
-
unsigned_
frame_ t buf_size - The number of frames in the buffer.
-
unsigned_
frame_ t 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.
- const char* file
- Source file initialized from.
- const char* func
- Function initialized from.
- int lineno
- Line no initialized from.