summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorrealtradam <[email protected]>2023-05-11 23:11:40 -0400
committerrealtradam <[email protected]>2023-05-11 23:11:40 -0400
commitc90255bb076468aa5f8e82361ebae5765facae47 (patch)
tree3793e0716cde638e7e2968c48a5a58b5eb7ede45 /include
parent0edab992ab6ee804c223e30ae9347b3072a750be (diff)
downloadRodeoKit-c90255bb076468aa5f8e82361ebae5765facae47.tar.gz
RodeoKit-c90255bb076468aa5f8e82361ebae5765facae47.zip
implemented some more audio functions
Diffstat (limited to 'include')
-rw-r--r--include/rodeo/audio.h18
1 files changed, 15 insertions, 3 deletions
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);