diff options
author | rodri <rgl@antares-labs.eu> | 2023-10-10 14:56:17 +0000 |
---|---|---|
committer | rodri <rgl@antares-labs.eu> | 2023-10-10 14:56:17 +0000 |
commit | dbfc9b6d9bc6aa9f337eadc21d0d6dfbdbc3e3d7 (patch) | |
tree | b1a37b15531110d799e8ae267df752ebcfd3655c /mixer.h | |
parent | ca3289c29673b914d8ca64b08954ef0afccdf3c9 (diff) | |
download | battleship-dbfc9b6d9bc6aa9f337eadc21d0d6dfbdbc3e3d7.tar.gz battleship-dbfc9b6d9bc6aa9f337eadc21d0d6dfbdbc3e3d7.tar.bz2 battleship-dbfc9b6d9bc6aa9f337eadc21d0d6dfbdbc3e3d7.zip |
get rid of duplicate AudioSource init procedures.
also changed the name of some of the mixer functions.
Diffstat (limited to 'mixer.h')
-rw-r--r-- | mixer.h | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -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*); |