19struct kinc_internal_video_sound_stream;
21struct kinc_a1_channel;
22typedef struct kinc_a1_channel kinc_a1_channel_t;
24struct kinc_a1_stream_channel;
25typedef struct kinc_a1_stream_channel kinc_a1_stream_channel_t;
27struct kinc_internal_video_channel;
28typedef struct kinc_internal_video_channel kinc_internal_video_channel_t;
44KINC_FUNC kinc_a1_channel_t *
kinc_a1_play_sound(kinc_a1_sound_t *sound,
bool loop,
float pitch,
bool unique);
88KINC_FUNC
void kinc_a1_mix(kinc_a2_buffer_t *buffer, uint32_t samples);
90void kinc_internal_play_video_sound_stream(
struct kinc_internal_video_sound_stream *stream);
91void kinc_internal_stop_video_sound_stream(
struct kinc_internal_video_sound_stream *stream);
KINC_FUNC void kinc_a1_stop_sound(kinc_a1_sound_t *sound)
Stops the sound from playing.
Definition audio.c.h:177
KINC_FUNC void kinc_a1_channel_set_volume(kinc_a1_channel_t *channel, float volume)
Sets the current volume of a channel. Only works correctly if the channel is still playing.
Definition audio.c.h:251
KINC_FUNC kinc_a1_channel_t * kinc_a1_play_sound(kinc_a1_sound_t *sound, bool loop, float pitch, bool unique)
Plays a sound immediately.
Definition audio.c.h:150
KINC_FUNC void kinc_a1_stop_sound_stream(kinc_a1_sound_stream_t *stream)
Stops a sound-stream from playing.
Definition audio.c.h:211
KINC_FUNC void kinc_a1_mix(kinc_a2_buffer_t *buffer, uint32_t samples)
Mixes audio into the provided buffer. kinc_a1_init sets this as the callback for a2 but you can also ...
Definition audio.c.h:50
KINC_FUNC void kinc_a1_init(void)
Initialize the Audio1-API.
Definition audio.c.h:135
KINC_FUNC float kinc_a1_channel_get_volume(kinc_a1_channel_t *channel)
Gets the current volume of a channel. Only works correctly if the channel is still playing.
Definition audio.c.h:247
KINC_FUNC void kinc_a1_play_sound_stream(kinc_a1_sound_stream_t *stream)
Starts playing a sound-stream.
Definition audio.c.h:189
Provides basic functionality that's used all over the place. There's usually no need to manually incl...
Sounds are pre-decoded on load and therefore primarily useful for playing sound-effects.
Sound-Streams are decoded while playing and as such are useful for large audio-files like music or sp...