Vegastrike 0.5.1 rc1  1.0
Original sources for Vegastrike Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
audiolib.h
Go to the documentation of this file.
1 #ifndef _AUDIO_LIB_H_
2 #define _AUDIO_LIB_H_
3 #include "gfx/vec.h"
4 #include <string>
5 bool AUDInit();
6 void AUDDestroy();
8 void AUDListenerSize( const float size );
9 void AUDListener( const QVector &pos, const Vector &vel );
12 void AUDRefreshSounds();
14 void AUDListenerOrientation( const Vector &i, const Vector &j, const Vector &k );
15 void AUDListenerGain( const float gain );
16 float AUDGetListenerGain();
18 int AUDCreateSoundWAV( const std::string&, const bool LOOP = false );
20 int AUDCreateSoundMP3( const std::string&, const bool LOOP = false );
22 int AUDCreateMusicWAV( const std::string&, const bool LOOP = false );
24 int AUDCreateMusicMP3( const std::string&, const bool LOOP = false );
26 int AUDCreateSound( int sound, const bool LOOP = false );
28 int AUDCreateSound( const std::string&, const bool LOOP = false );
30 int AUDCreateMusic( const std::string&, const bool LOOP = false );
31 void AUDStopAllSounds( int except_this_one = -1 );
34 void AUDDeleteSound( int sound, bool music = false );
36 void AUDAdjustSound( const int sound, const QVector &pos, const Vector &vel );
38 void AUDStreamingSound( const int sound );
40 void AUDSoundGain( int sound, float gain, bool music = false );
42 bool AUDIsPlaying( const int sound );
44 void AUDStopPlaying( const int sound );
46 void AUDStartPlaying( const int sound );
48 void AUDPlay( const int sound, const QVector &pos, const Vector &vel, const float gain );
50 void AUDPausePlaying( const int sound );
52 void AUDChangeVolume( float volume );
53 float AUDGetVolume();
55 void AUDChangeDoppler( float doppler );
57 float AUDGetCurrentPosition( const int sound );
59 float AUDGetDoppler();
60 //#define PERFRAMESOUND
61 #endif
62