From c90255bb076468aa5f8e82361ebae5765facae47 Mon Sep 17 00:00:00 2001 From: realtradam Date: Thu, 11 May 2023 23:11:40 -0400 Subject: implemented some more audio functions --- include/rodeo/audio.h | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/rodeo/audio.h b/include/rodeo/audio.h index 2d03250..d9f7a95 100644 --- a/include/rodeo/audio.h +++ b/include/rodeo/audio.h @@ -10,19 +10,31 @@ typedef struct rodeo_audio_sound_t rodeo_audio_sound_t; void rodeo_audio_initialize( - int32_t num_sound_pools, - int32_t size_sound_pools + uint32_t num_sound_pools, + uint32_t size_sound_pools ); void rodeo_audio_deinitialize(void); +uint32_t +irodeo_audio_channelPool_num_get(void); + +uint32_t +irodeo_audio_channelPool_size_get(void); + void rodeo_audio_masterVolume_set(float volume_level); float rodeo_audio_masterVolume_get(void); +void +rodeo_audio_channelPool_volume_set(uint32_t channel_pool_id, float volume_level); + +float +rodeo_audio_channelPool_volume_get(uint32_t channel_pool_id); + rodeo_audio_sound_t* rodeo_audio_sound_create_from_path(cstr path); @@ -30,4 +42,4 @@ void rodeo_audio_sound_destroy(rodeo_audio_sound_t* sound); void -rodeo_audio_sound_play(rodeo_audio_sound_t *sound, int32_t pool_id); +rodeo_audio_sound_play(rodeo_audio_sound_t *sound, uint32_t pool_id); -- cgit v1.2.3