From 764756d962b461a326c1be5abd910bd527c55b59 Mon Sep 17 00:00:00 2001 From: Relintai Date: Wed, 19 Feb 2025 16:54:52 +0100 Subject: [PATCH] Remove API declarations. --- sfw/audio/audio.h | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/sfw/audio/audio.h b/sfw/audio/audio.h index cdcae90..10ff061 100644 --- a/sfw/audio/audio.h +++ b/sfw/audio/audio.h @@ -10,30 +10,30 @@ // midi interface -API void midi_send(unsigned midi_msg); +void midi_send(unsigned midi_msg); // audio interface typedef struct audio_handle* audio_t; -API audio_t audio_clip( const char *pathfile ); -API audio_t audio_stream( const char *pathfile ); -API int audio_play( audio_t s, int flags ); -API int audio_play_gain( audio_t a, int flags, float gain/*0*/ ); -API int audio_play_gain_pitch( audio_t a, int flags, float gain, float pitch/*1*/ ); -API int audio_play_gain_pitch_pan( audio_t a, int flags, float gain, float pitch, float pan/*0*/ ); -API int audio_stop( audio_t a ); -API void audio_loop( audio_t a, bool loop ); -API bool audio_playing( audio_t a ); +audio_t audio_clip( const char *pathfile ); +audio_t audio_stream( const char *pathfile ); +int audio_play( audio_t s, int flags ); +int audio_play_gain( audio_t a, int flags, float gain/*0*/ ); +int audio_play_gain_pitch( audio_t a, int flags, float gain, float pitch/*1*/ ); +int audio_play_gain_pitch_pan( audio_t a, int flags, float gain, float pitch, float pan/*0*/ ); +int audio_stop( audio_t a ); +void audio_loop( audio_t a, bool loop ); +bool audio_playing( audio_t a ); -API float audio_volume_clip(float gain); // set fx volume if gain is in [0..1] range. returns current fx volume in any case -API float audio_volume_stream(float gain); // set bgm volume if gain is in [0..1] range. returns current bgm volume in any case -API float audio_volume_master(float gain); // set master volume if gain is in [0..1] range. returns current master volume in any case +float audio_volume_clip(float gain); // set fx volume if gain is in [0..1] range. returns current fx volume in any case +float audio_volume_stream(float gain); // set bgm volume if gain is in [0..1] range. returns current bgm volume in any case +float audio_volume_master(float gain); // set master volume if gain is in [0..1] range. returns current master volume in any case -API int audio_mute(int mute); -API int audio_muted(); +int audio_mute(int mute); +int audio_muted(); -API int ui_audio(); +int ui_audio(); enum AUDIO_FLAGS { AUDIO_1CH = 0, // default @@ -57,4 +57,4 @@ enum AUDIO_FLAGS { AUDIO_SINGLE_INSTANCE = 512, }; -API int audio_queue( const void *samples, int num_samples, int flags ); +int audio_queue( const void *samples, int num_samples, int flags );