]> git.lizzy.rs Git - nothing.git/blob - src/game/sound_samples.h
(#199) Fix boxes physics
[nothing.git] / src / game / sound_samples.h
1 #ifndef SOUND_SAMPLES_H_
2 #define SOUND_SAMPLES_H_
3
4 #include <SDL2/SDL_mixer.h>
5
6 #include "math/point.h"
7
8 typedef struct sound_samples_t sound_samples_t;
9
10 sound_samples_t *create_sound_samples(const char *sample_files[],
11                                       size_t sample_files_count);
12 void destroy_sound_samples(sound_samples_t *sound_samples);
13
14 int sound_samples_play_sound(sound_samples_t *sound_samples,
15                             size_t sound_index,
16                             int loops);
17
18 int sound_samples_toggle_pause(sound_samples_t *sound_samples);
19
20 #endif  // SOUND_SAMPLES_H_