diff options
| author | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2022-05-22 19:29:25 +0200 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2022-05-24 22:20:02 +0200 |
| commit | dea345f412652151c256f20df0793e47673dff2b (patch) | |
| tree | af9220bd5f7c4f9fa00b03969abd3c5d9a4912d7 /src/sfx/inc | |
| parent | 354034b06b6f772ed92c3f26f8e8c680aa93fa8d (diff) | |
| download | rts-dea345f412652151c256f20df0793e47673dff2b.tar.gz | |
Allow systems without sound support
Diffstat (limited to 'src/sfx/inc')
| -rw-r--r-- | src/sfx/inc/sfx.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sfx/inc/sfx.h b/src/sfx/inc/sfx.h index b8fe44f..ea290d3 100644 --- a/src/sfx/inc/sfx.h +++ b/src/sfx/inc/sfx.h @@ -2,6 +2,7 @@ #define SFX_H #include <sfx/port.h> +#include <stddef.h> #include <stdio.h> #ifdef __cplusplus @@ -10,7 +11,7 @@ extern "C" #endif int sfx_init(void); -int sfx_sound_from_fp(struct sound *s, FILE *f); +int sfx_sound_from_fp(struct sound *s, FILE *f, size_t sz); int sfx_play(const struct sound *s); void sfx_free(struct sound *s); void sfx_deinit(void); |
