Mercurial > molko
comparison libmlk-core/core/sound.h @ 298:196264679079
misc: remove usage of bool
author | David Demelier <markand@malikania.fr> |
---|---|
date | Wed, 10 Mar 2021 18:49:08 +0100 |
parents | 08ab73b32832 |
children | d01e83210ca2 |
comparison
equal
deleted
inserted
replaced
297:6151152d009c | 298:196264679079 |
---|---|
17 */ | 17 */ |
18 | 18 |
19 #ifndef MOLKO_CORE_SOUND_H | 19 #ifndef MOLKO_CORE_SOUND_H |
20 #define MOLKO_CORE_SOUND_H | 20 #define MOLKO_CORE_SOUND_H |
21 | 21 |
22 #include <stdbool.h> | |
23 #include <stddef.h> | 22 #include <stddef.h> |
24 | 23 |
25 #include "core.h" | 24 #include "core.h" |
26 | 25 |
27 #define SOUND_CHANNELS_MAX (256) | 26 #define SOUND_CHANNELS_MAX (256) |
31 int channel; | 30 int channel; |
32 }; | 31 }; |
33 | 32 |
34 CORE_BEGIN_DECLS | 33 CORE_BEGIN_DECLS |
35 | 34 |
36 bool | 35 int |
37 sound_open(struct sound *snd, const char *path); | 36 sound_open(struct sound *, const char *); |
38 | 37 |
39 bool | 38 int |
40 sound_openmem(struct sound *snd, const void *buffer, size_t buffersz); | 39 sound_openmem(struct sound *, const void *, size_t); |
41 | 40 |
42 bool | 41 int |
43 sound_ok(const struct sound *snd); | 42 sound_ok(const struct sound *); |
44 | 43 |
45 bool | 44 int |
46 sound_play(struct sound *snd, int channel, unsigned int fadein); | 45 sound_play(struct sound *, int, unsigned int); |
47 | 46 |
48 void | 47 void |
49 sound_pause(struct sound *snd); | 48 sound_pause(struct sound *); |
50 | 49 |
51 void | 50 void |
52 sound_resume(struct sound *snd); | 51 sound_resume(struct sound *); |
53 | 52 |
54 void | 53 void |
55 sound_stop(struct sound *snd, unsigned int fadeout); | 54 sound_stop(struct sound *, unsigned int); |
56 | 55 |
57 void | 56 void |
58 sound_finish(struct sound *snd); | 57 sound_finish(struct sound *); |
59 | 58 |
60 CORE_END_DECLS | 59 CORE_END_DECLS |
61 | 60 |
62 #endif /* !MOLKO_CORE_SOUND_H */ | 61 #endif /* !MOLKO_CORE_SOUND_H */ |