]> git.lizzy.rs Git - nothing.git/blob - src/game/sound_samples.h
Merge pull request #1215 from gooddoog/387
[nothing.git] / src / game / sound_samples.h
1 #ifndef SOUND_SAMPLES_H_
2 #define SOUND_SAMPLES_H_
3
4 #include "math/vec.h"
5
6 typedef struct Sound_samples Sound_samples;
7
8 Sound_samples *create_sound_samples(const char *sample_files[],
9                                       size_t sample_files_count);
10 void destroy_sound_samples(Sound_samples *sound_samples);
11
12 int sound_samples_play_sound(Sound_samples *sound_samples,
13                              size_t sound_index);
14
15 int sound_samples_toggle_pause(Sound_samples *sound_samples);
16
17 void sound_samples_update_volume(Sound_samples *sound_samples,
18                                  float volume);
19
20 #endif  // SOUND_SAMPLES_H_