Mercurial > molko
comparison src/libmlk-core/core/music.h @ 341:0c18acf4517e
js: add music bindings
author | David Demelier <markand@malikania.fr> |
---|---|
date | Sat, 16 Oct 2021 09:45:45 +0200 |
parents | 8f9937403749 |
children | 19782ea1cf4a |
comparison
equal
deleted
inserted
replaced
340:64aff0afc8ac | 341:0c18acf4517e |
---|---|
21 | 21 |
22 #include <stddef.h> | 22 #include <stddef.h> |
23 | 23 |
24 #include "core.h" | 24 #include "core.h" |
25 | 25 |
26 struct vfs_file; | |
27 | |
26 enum music_flags { | 28 enum music_flags { |
27 MUSIC_NONE = 0, | 29 MUSIC_NONE = 0, |
28 MUSIC_LOOP = (1 << 0) | 30 MUSIC_LOOP = (1 << 0) |
29 }; | 31 }; |
30 | 32 |
37 int | 39 int |
38 music_open(struct music *, const char *); | 40 music_open(struct music *, const char *); |
39 | 41 |
40 int | 42 int |
41 music_openmem(struct music *, const void *, size_t); | 43 music_openmem(struct music *, const void *, size_t); |
44 | |
45 int | |
46 music_openvfs(struct music *, struct vfs_file *); | |
42 | 47 |
43 int | 48 int |
44 music_ok(const struct music *); | 49 music_ok(const struct music *); |
45 | 50 |
46 int | 51 int |