summaryrefslogtreecommitdiffhomepage
path: root/include/rodeo/audio.h
blob: 2d032503c64904fbedcfd5e2757d2b1b1757712d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#pragma once

// -- external --
#include "stc/cstr.h"

// -- system --
#include <inttypes.h>

typedef struct rodeo_audio_sound_t rodeo_audio_sound_t;

void
rodeo_audio_initialize(
	int32_t num_sound_pools,
	int32_t size_sound_pools
);

void
rodeo_audio_deinitialize(void);

void
rodeo_audio_masterVolume_set(float volume_level);

float
rodeo_audio_masterVolume_get(void);

rodeo_audio_sound_t*
rodeo_audio_sound_create_from_path(cstr path);

void
rodeo_audio_sound_destroy(rodeo_audio_sound_t* sound);

void
rodeo_audio_sound_play(rodeo_audio_sound_t *sound, int32_t pool_id);