Merge branch 'master' of ssh://repo.or.cz/srv/git/bcl
[bcl.git] / audio.h
blob69a8253fb14a65d9047a444f51d6f5c201afdd41
1 #ifndef _audio_h
2 #define _audio_h
4 DECLSPEC void initAudio();
5 DECLSPEC void terminateAudio();
6 DECLSPEC int streamSound(char * file);
7 DECLSPEC int loadSound(char * file);
8 DECLSPEC void unloadSound(int sound);
9 DECLSPEC void setSoundPosition(int sound, float x, float y, float z);
10 DECLSPEC void playSound(int sound);
11 DECLSPEC void loopSound(int sound);
12 DECLSPEC void stopSound(int sound);
13 DECLSPEC void setSoundPitch(int sound, float pitch);
14 DECLSPEC void setListenerPosition(float x, float y, float z);
15 DECLSPEC void setSoundLowpass(int sound, int lp);
16 DECLSPEC int getSoundLowpass(int sound);
17 DECLSPEC int isPlaying(int sound);
18 DECLSPEC void setSoundGain(int sound, float gain);
19 #endif