From dbfc9b6d9bc6aa9f337eadc21d0d6dfbdbc3e3d7 Mon Sep 17 00:00:00 2001 From: rodri Date: Tue, 10 Oct 2023 14:56:17 +0000 Subject: get rid of duplicate AudioSource init procedures. also changed the name of some of the mixer functions. --- mixer.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'mixer.h') diff --git a/mixer.h b/mixer.h index 6645cdb..6b7f3bd 100644 --- a/mixer.h +++ b/mixer.h @@ -83,13 +83,13 @@ struct Mixer }; -void audio_init(int); +void initaudio(int); void audio_set_master_gain(double); -void audio_process(s16int*, int); +void processaudio(s16int*, int); -AudioSource *audio_new_source(AudioSourceInfo*); -AudioSource *audio_new_source_from_file(char*); -void audio_destroy_source(AudioSource*); +AudioSource *newaudiosource(AudioSourceInfo*); +AudioSource *loadaudiosource(char*); +void delaudiosource(AudioSource*); double audio_get_length(AudioSource*); double audio_get_position(AudioSource*); int audio_get_state(AudioSource*); @@ -97,6 +97,6 @@ void audio_set_gain(AudioSource*, double); void audio_set_pan(AudioSource*, double); void audio_set_pitch(AudioSource*, double); void audio_set_loop(AudioSource*, int); -void audio_play(AudioSource*); -void audio_pause(AudioSource*); -void audio_stop(AudioSource*); +void playaudio(AudioSource*); +void pauseaudio(AudioSource*); +void stopaudio(AudioSource*); -- cgit v1.2.3