audio/sample_playback.h file

A framework from playing back samples independent of the timeline, such as metronomes and samples from the browser.

Contents

Classes

struct SamplePlayback
A sample playback handle to be used by the engine.

Typedefs

using SamplePlayback = struct SamplePlayback
A sample playback handle to be used by the engine.

Functions

void sample_playback_init(SamplePlayback* self, sample_t** buf, long buf_size, channels_t channels, float vol, nframes_t start_offset)
Initializes a SamplePlayback with a sample to play back.