audio/engine.h file

The audio engine.



void engine_init(AudioEngine* self, int loading)
Init audio engine.
void engine_update_frames_per_tick(int beats_per_bar, int bpm, int sample_rate)
Updates frames per tick based on the time sig, the BPM, and the sample rate.
void engine_process_prepare(AudioEngine* self, uint32_t nframes)
To be called by each implementation to prepare the structures before processing.
auto engine_process(AudioEngine* self, uint32_t nframes) -> int
Processes current cycle.
void engine_post_process()
To be called after processing for common logic.
void engine_tear_down()
Closes any connections and free's data.