]> git.lizzy.rs Git - nothing.git/blob - src/sound_medium.h
(#110) Turn seen goals into checkpoints
[nothing.git] / src / sound_medium.h
1 #ifndef SOUND_MEDIUM_H_
2 #define SOUND_MEDIUM_H_
3
4 #include <SDL2/SDL_mixer.h>
5 #include "./point.h"
6
7 typedef struct sound_medium_t sound_medium_t;
8
9 sound_medium_t *create_sound_medium(Mix_Chunk **samples,
10                                     size_t samples_count,
11                                     int lower_channel,
12                                     int upper_channel);
13 void destroy_sound_medium(sound_medium_t *sound_medium);
14
15 int sound_medium_play_sound(sound_medium_t *sound_medium,
16                             size_t sound_index,
17                             point_t position,
18                             int loops);
19
20 int sound_medium_toggle_pause(sound_medium_t *sound_medium);
21
22 #endif  // SOUND_MEDIUM_H_