Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
|
Go to the source code of this file.
Functions | |
bool | AUDInit () |
void | AUDDestroy () |
void | AUDListenerSize (const float size) |
Sets the size in which all sounds are going to be played. More... | |
void | AUDListener (const QVector &pos, const Vector &vel) |
QVector | AUDListenerLocation () |
void | AUDRefreshSounds () |
Checks if sounds are still playing. More... | |
void | AUDListenerOrientation (const Vector &i, const Vector &j, const Vector &k) |
Will the sound be played. More... | |
void | AUDListenerGain (const float gain) |
float | AUDGetListenerGain () |
int | AUDCreateSoundWAV (const std::string &, const bool LOOP=false) |
creates a buffer if one doesn't already exists, and then creates a source More... | |
int | AUDCreateSoundMP3 (const std::string &, const bool LOOP=false) |
creates a buffer for an mp3 sound if one doesn't already exist, then creates a source More... | |
int | AUDCreateMusicWAV (const std::string &, const bool LOOP=false) |
creates a buffer if one doesn't already exists, and then creates a source More... | |
int | AUDCreateMusicMP3 (const std::string &, const bool LOOP=false) |
creates a buffer for an mp3 sound if one doesn't already exist, then creates a source More... | |
int | AUDCreateSound (int sound, const bool LOOP=false) |
copies other sound loaded through AUDCreateSound More... | |
int | AUDCreateSound (const std::string &, const bool LOOP=false) |
guesses the type of sound by extension More... | |
int | AUDCreateMusic (const std::string &, const bool LOOP=false) |
guesses the type of sound by extension More... | |
void | AUDStopAllSounds (int except_this_one=-1) |
int | AUDHighestSoundPlaying () |
void | AUDDeleteSound (int sound, bool music=false) |
deletes a given sound More... | |
void | AUDAdjustSound (const int sound, const QVector &pos, const Vector &vel) |
Changes the velocity and/or position of a given sound. More... | |
void | AUDStreamingSound (const int sound) |
Setup the sound as a streaming source (this means right now only that it doesn't do 3D positional stuff) More... | |
void | AUDSoundGain (int sound, float gain, bool music=false) |
Changes the gain of a loaded sound. More... | |
bool | AUDIsPlaying (const int sound) |
Is a loaded sound still playing. More... | |
void | AUDStopPlaying (const int sound) |
Stops a loaded sound. More... | |
void | AUDStartPlaying (const int sound) |
Plays a loaded sound. More... | |
void | AUDPlay (const int sound, const QVector &pos, const Vector &vel, const float gain) |
Queries if the sound should be culled. If not, plays. More... | |
void | AUDPausePlaying (const int sound) |
Pauses a loaded sound. More... | |
void | AUDChangeVolume (float volume) |
Changes the volume (generally 0 or between 1 and 1000) More... | |
float | AUDGetVolume () |
void | AUDChangeDoppler (float doppler) |
changes the scale used for doppler...generally between 0 for off or .01 and 10 More... | |
float | AUDGetCurrentPosition (const int sound) |
Gets the current playback position in seconds (precision is system&driver-dependant) More... | |
float | AUDGetDoppler () |
Gets current doppler val. More... | |
Changes the velocity and/or position of a given sound.
Definition at line 683 of file al_sound.cpp.
References f, VegaConfig::getVariable(), XMLSupport::parse_float(), v, and vs_config.
Referenced by AUDPlay(), AUDStartPlaying(), Beam::Draw(), GameUnit< UnitType >::Draw(), Mount::PhysicsAlignedFire(), soundContainer::playsound(), UniverseUtil::playSound(), GameUnit< UnitType >::ResolveForces(), Beam::UpdatePhysics(), and Unit::UpdatePhysics().
void AUDChangeDoppler | ( | float | doppler) |
changes the scale used for doppler...generally between 0 for off or .01 and 10
Definition at line 102 of file al_init.cpp.
void AUDChangeVolume | ( | float | volume) |
Changes the volume (generally 0 or between 1 and 1000)
Definition at line 81 of file al_init.cpp.
References volume.
guesses the type of sound by extension
Definition at line 615 of file al_sound.cpp.
References AUDCreateMusicMP3(), and AUDCreateMusicWAV().
creates a buffer for an mp3 sound if one doesn't already exist, then creates a source
Definition at line 599 of file al_sound.cpp.
References AUDCreateSoundMP3().
Referenced by AUDCreateMusic().
creates a buffer if one doesn't already exists, and then creates a source
Definition at line 545 of file al_sound.cpp.
References AUDCreateSoundWAV().
Referenced by AUDCreateMusic().
copies other sound loaded through AUDCreateSound
Definition at line 627 of file al_sound.cpp.
References AUDIsPlaying(), and AUDStopPlaying().
guesses the type of sound by extension
Definition at line 604 of file al_sound.cpp.
References AUDCreateSoundMP3(), and AUDCreateSoundWAV().
Referenced by AddMounts(), AddSounds(), Beam::Beam(), GameStarSystem::DoJumpingLeaveSightAndSound(), Mount::PhysicsAlignedFire(), Mount::ReplaceSound(), GameUnit< UnitType >::Thrust(), and GameUnit< UnitType >::TransferUnitToSystem().
creates a buffer for an mp3 sound if one doesn't already exist, then creates a source
Definition at line 594 of file al_sound.cpp.
References AUDCreateSoundMP3().
creates a buffer if one doesn't already exists, and then creates a source
Definition at line 540 of file al_sound.cpp.
References AUDCreateSoundWAV().
deletes a given sound
Definition at line 639 of file al_sound.cpp.
References AUDIsPlaying(), AUDStopPlaying(), soundstodelete, and VSFileSystem::vs_fprintf().
Referenced by AUDDestroy(), AUDRefreshSounds(), Unit::ClearMounts(), BaseInterface::Room::Talk::Click(), Unit::Kill(), Music::Listen(), Mount::PhysicsAlignedFire(), UniverseUtil::playSound(), UniverseUtil::playSoundCockpit(), Beam::~Beam(), and soundContainer::~soundContainer().
void AUDDestroy | ( | ) |
Definition at line 204 of file al_init.cpp.
References AUDDeleteSound(), AUDStopPlaying(), buffer, and i.
Referenced by cleanup().
Gets the current playback position in seconds (precision is system&driver-dependant)
Definition at line 898 of file al_sound.cpp.
References AL_SEC_OFFSET, and float.
float AUDGetDoppler | ( | ) |
Gets current doppler val.
Definition at line 112 of file al_init.cpp.
float AUDGetListenerGain | ( | ) |
Definition at line 273 of file al_listen.cpp.
References Listener::gain, and mylistener.
float AUDGetVolume | ( | ) |
Definition at line 93 of file al_init.cpp.
int AUDHighestSoundPlaying | ( | ) |
Definition at line 738 of file al_sound.cpp.
References AUDIsPlaying().
Referenced by BaseInterface::BaseInterface().
bool AUDInit | ( | ) |
Definition at line 132 of file al_init.cpp.
References game_data_t::audio_frequency_mode, g_game, VegaConfig::getVariable(), game_data_t::max_sound_sources, game_data_t::music_enabled, XMLSupport::parse_bool(), XMLSupport::parse_float(), XMLSupport::parse_int(), game_data_t::sound_enabled, and vs_config.
Referenced by main().
Is a loaded sound still playing.
Definition at line 760 of file al_sound.cpp.
Referenced by GameUnit< UnitType >::ArmorDamageSound(), AUDCreateSound(), AUDDeleteSound(), AUDHighestSoundPlaying(), AUDPlay(), AUDRefreshSounds(), AUDStopAllSounds(), GameUnit< UnitType >::DealDamageToShield(), FireKeyboard::Execute(), GameUnit< UnitType >::HullDamageSound(), Music::Listen(), Mount::PhysicsAlignedFire(), Mount::PhysicsAlignedUnfire(), FireKeyboard::ProcessCommMessage(), FSM::Node::StopSound(), GameUnit< UnitType >::Thrust(), Beam::UpdatePhysics(), Unit::UpdatePhysics(), and UpdateTimeCompressionSounds().
Definition at line 210 of file al_listen.cpp.
References g_game, mylistener, Listener::pos, game_data_t::sound_enabled, and Listener::vel.
Referenced by Camera::UpdateCameraSounds(), and Camera::UpdateGFX().
void AUDListenerGain | ( | const float | gain) |
Definition at line 259 of file al_listen.cpp.
References AUDSoundGain(), g_game, Listener::gain, i, mylistener, and game_data_t::sound_enabled.
Referenced by main(), VolDown(), and VolUp().
QVector AUDListenerLocation | ( | ) |
Definition at line 60 of file al_listen.cpp.
References mylistener, Listener::pos, and QVector.
Referenced by EstimateGain(), and Mount::PhysicsAlignedFire().
Will the sound be played.
Definition at line 232 of file al_listen.cpp.
References g_game, mylistener, Listener::p, Listener::q, q, Listener::r, and game_data_t::sound_enabled.
Referenced by Camera::UpdateCameraSounds(), and Camera::UpdateGFX().
void AUDListenerSize | ( | const float | size) |
Sets the size in which all sounds are going to be played.
Definition at line 225 of file al_listen.cpp.
References mylistener, and Listener::rsize.
Referenced by createObjects().
void AUDPausePlaying | ( | const int | sound) |
Pauses a loaded sound.
Definition at line 909 of file al_sound.cpp.
Queries if the sound should be culled. If not, plays.
Definition at line 862 of file al_sound.cpp.
References AUDAddWatchedPlayed(), AUDAdjustSound(), AUDIsPlaying(), AUDQueryAudability(), AUDReclaimSource(), AUDSoundGain(), AUDStopPlaying(), QVector, starSystemOK(), and VSFileSystem::vs_dprintf().
Referenced by abletodock(), GameUnit< UnitType >::ArmorDamageSound(), Beam::Collide(), GameUnit< UnitType >::DealDamageToShield(), GameStarSystem::DoJumpingLeaveSightAndSound(), FireKeyboard::Execute(), GameUnit< UnitType >::Explode(), GameUnit< UnitType >::HullDamageSound(), Mount::PhysicsAlignedFire(), soundContainer::playsound(), FireKeyboard::ProcessCommMessage(), GameCockpit::ScrollVDU(), GameUnit< UnitType >::Thrust(), GameUnit< UnitType >::TransferUnitToSystem(), and GameCockpit::VDUSwitch().
void AUDRefreshSounds | ( | ) |
Checks if sounds are still playing.
Definition at line 174 of file al_listen.cpp.
References AUDDeleteSound(), AUDIsPlaying(), hashsize, i, j, k, playingbuffers, soundstodelete, and totalplaying.
Referenced by StarSystem::Update().
Changes the gain of a loaded sound.
Definition at line 245 of file al_listen.cpp.
References Listener::gain, and mylistener.
Referenced by AUDListenerGain(), AUDPlay(), AUDStartPlaying(), Beam::Draw(), Music::Listen(), and Mount::PhysicsAlignedFire().
void AUDStartPlaying | ( | const int | sound) |
Plays a loaded sound.
Definition at line 841 of file al_sound.cpp.
References AUDAdjustSound(), AUDReclaimSource(), AUDSoundGain(), QVector, and starSystemOK().
Referenced by BaseInterface::Room::Talk::Click(), Beam::Init(), Music::Listen(), UniverseUtil::playSound(), UniverseUtil::playSoundCockpit(), and Unit::UpdatePhysics().
void AUDStopAllSounds | ( | int | except_this_one = -1 ) |
Definition at line 750 of file al_sound.cpp.
References AUDIsPlaying(), and AUDStopPlaying().
Referenced by BaseComputer::actionDone(), base_main_loop(), UniverseUtil::StopAllSounds(), and GameUnit< UnitType >::TransferUnitToSystem().
void AUDStopPlaying | ( | const int | sound) |
Stops a loaded sound.
Definition at line 779 of file al_sound.cpp.
Referenced by GameUnit< UnitType >::ArmorDamageSound(), AUDCreateSound(), AUDDeleteSound(), AUDDestroy(), AUDPlay(), AUDStopAllSounds(), GameUnit< UnitType >::DealDamageToShield(), DestroyMount(), GameUnit< UnitType >::HullDamageSound(), Unit::Kill(), Mount::PhysicsAlignedFire(), Mount::PhysicsAlignedUnfire(), FSM::Node::StopSound(), GameUnit< UnitType >::Thrust(), Beam::UpdatePhysics(), Unit::UpdatePhysics(), UpdateTimeCompressionSounds(), and soundContainer::~soundContainer().
void AUDStreamingSound | ( | const int | sound) |
Setup the sound as a streaming source (this means right now only that it doesn't do 3D positional stuff)
Definition at line 714 of file al_sound.cpp.
References Audio::alSource3f().
Referenced by Music::Listen().