1#ifndef KORE_AUDIO_HEADER
2#define KORE_AUDIO_HEADER
16#define KORE_AUDIO_MAX_CHANNELS 8
19 uint8_t channel_count;
20 float *channels[KORE_AUDIO_MAX_CHANNELS];
22 uint32_t read_location;
23 uint32_t write_location;
62void kore_audio_internal_init(
void);
64void kore_audio_internal_sample_rate_callback(
void);
KORE_FUNC void kore_audio_init(void)
Initializes the Audio2-API.
KORE_FUNC void kore_audio_set_sample_rate_callback(void(*kore_audio_sample_rate_callback)(void *userdata), void *userdata)
Sets a callback that's called when the system's sample-rate changes.
KORE_FUNC void kore_audio_shutdown(void)
Shuts down the Audio2-API.
KORE_FUNC uint32_t kore_audio_samples_per_second(void)
The current sample-rate of the system.
KORE_FUNC void kore_audio_set_callback(void(*kore_audio_callback)(kore_audio_buffer *buffer, uint32_t samples, void *userdata), void *userdata)
Sets the callback that's used to provide audio-samples. This is the primary method of operation for A...
KORE_FUNC void kore_audio_update(void)
kore_audio_update should be called every frame. It is required by some systems to pump their audio-lo...
Provides basic functionality that's used all over the place. There's usually no need to manually incl...