comparison libmlk-core/core/sound.h @ 292:08ab73b32832

misc: add extern "C" {} blocks for C++ friends
author David Demelier <markand@malikania.fr>
date Fri, 05 Mar 2021 10:08:09 +0100
parents c4da052c0def
children 196264679079
comparison
equal deleted inserted replaced
291:5d8700074dd7 292:08ab73b32832
20 #define MOLKO_CORE_SOUND_H 20 #define MOLKO_CORE_SOUND_H
21 21
22 #include <stdbool.h> 22 #include <stdbool.h>
23 #include <stddef.h> 23 #include <stddef.h>
24 24
25 #include "core.h"
25 26
26 #define SOUND_CHANNELS_MAX (256) 27 #define SOUND_CHANNELS_MAX (256)
27 28
28 struct sound { 29 struct sound {
29 void *handle; 30 void *handle;
30 int channel; 31 int channel;
31 }; 32 };
33
34 CORE_BEGIN_DECLS
32 35
33 bool 36 bool
34 sound_open(struct sound *snd, const char *path); 37 sound_open(struct sound *snd, const char *path);
35 38
36 bool 39 bool
52 sound_stop(struct sound *snd, unsigned int fadeout); 55 sound_stop(struct sound *snd, unsigned int fadeout);
53 56
54 void 57 void
55 sound_finish(struct sound *snd); 58 sound_finish(struct sound *snd);
56 59
60 CORE_END_DECLS
61
57 #endif /* !MOLKO_CORE_SOUND_H */ 62 #endif /* !MOLKO_CORE_SOUND_H */