]> git.lizzy.rs Git - nothing.git/blob - src/game/sound_samples.h
Merge pull request #646 from tsoding/639
[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 Sound_samples;
9
10 Sound_samples *create_sound_samples(const char *sample_files[],
11                                       size_t sample_files_count);
12 void destroy_sound_samples(Sound_samples *sound_samples);
13
14 int sound_samples_play_sound(Sound_samples *sound_samples,
15                             size_t sound_index,
16                             int loops);
17
18 int sound_samples_toggle_pause(Sound_samples *sound_samples);
19
20 #endif  // SOUND_SAMPLES_H_