audio/sample_processor.h file

Sample processor.

Contents

Classes

struct SampleProcessor
A processor to be used in the routing graph for playing samples independent of the timeline.

Typedefs

using SampleProcessor = struct SampleProcessor
A processor to be used in the routing graph for playing samples independent of the timeline.

Functions

void sample_processor_init(SampleProcessor* self)
Initializes a SamplePlayback with a sample to play back.
void sample_processor_prepare_process(SampleProcessor* self, const int nframes)
Clears the buffers.
void sample_processor_process(SampleProcessor* self, const int offset, const int nframes)
Process the samples for the given number of frames.
void sample_processor_remove_sample_playback(SampleProcessor* self, SamplePlayback* sp)
Removes a SamplePlayback from the array.
void sample_processor_queue_metronome(SampleProcessor* self, MetronomeType type, int offset)
Queues a metronomem tick at the given local offset.
void sample_processor_queue_sample_from_file(SampleProcessor* self, const char* path)
Adds a sample to play to the queue from a file path.