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, float** buf, long buf_size, int channels, float vol, int start_offset)
Initializes a SamplePlayback with a sample to play back.