comparison libmlk-core/core/music.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_MUSIC_H 19 #ifndef MOLKO_CORE_MUSIC_H
20 #define MOLKO_CORE_MUSIC_H 20 #define MOLKO_CORE_MUSIC_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 enum music_flags { 26 enum music_flags {
33 void *handle; 32 void *handle;
34 }; 33 };
35 34
36 CORE_BEGIN_DECLS 35 CORE_BEGIN_DECLS
37 36
38 bool 37 int
39 music_open(struct music *mus, const char *path); 38 music_open(struct music *, const char *);
40 39
41 bool 40 int
42 music_openmem(struct music *mus, const void *buffer, size_t buffersz); 41 music_openmem(struct music *, const void *, size_t);
43 42
44 bool 43 int
45 music_ok(const struct music *mus); 44 music_ok(const struct music *);
46 45
47 bool 46 int
48 music_play(struct music *mus, enum music_flags flags, unsigned int fadein); 47 music_play(struct music *, enum music_flags, unsigned int);
49 48
50 bool 49 int
51 music_playing(void); 50 music_playing(void);
52 51
53 void 52 void
54 music_pause(void); 53 music_pause(void);
55 54
56 void 55 void
57 music_resume(void); 56 music_resume(void);
58 57
59 void 58 void
60 music_stop(unsigned int fadeout); 59 music_stop(unsigned int);
61 60
62 void 61 void
63 music_finish(struct music *mus); 62 music_finish(struct music *);
64 63
65 CORE_END_DECLS 64 CORE_END_DECLS
66 65
67 #endif /* !MOLKO_CORE_MUSIC_H */ 66 #endif /* !MOLKO_CORE_MUSIC_H */