#include <Sound.h>
|
| | Sound (GameClass *gameptr) |
| |
| void | EnumDevices () |
| |
| void | Init () |
| |
| void | InitDevice (SoundConfig *deviceConfig) |
| |
| void | Close () |
| |
| void | PlayAudioData (unsigned char *data, size_t length) |
| |
| void | GlobalAttenuate (float prmGaTimeToFadeOut, float prmGaTimeToHold, float prmGaTimeToFadeIn, int soundEnum, float prmExTimeToFadeIn, float prmExTimeToHold, float prmExTimeToFadeOut, float volumeAdj=1.0f) |
| |
| void | ChangeVolume (SoundConfig *config, float modVolume) |
| |
| void | ChangeVolume (int soundEnum, float modVolume) |
| |
| float | Play (int soundEnum) |
| |
| void | Reset () |
| |
| void | PlayEx (int soundEnum, bool loop, float volume=1.0f, float frequencyMod=1.0f, float pan=0.0f, bool restart=true) |
| |
| void | Stop (int soundEnum) |
| |
| void | AddLoopingVehicleSound (int soundEnum, unsigned char array) |
| |
| void | RemoveLoopingVehicleSound (int soundEnum, unsigned char array) |
| |
| void | LegacySoundRequestUniverse (SServerPacket datapacket) |
| |
| void | AddDelayedSound (int soundEnum, float delay, float volume=1.0f) |
| |
| void | ChangeCockpit (bool force) |
| |
| void | FrameMoveAAC () |
| |
| void | PrecipWindSoundBarrier (D3DXVECTOR3 relativewind, float elapsedTime) |
| |
| void | LoadSounds (short instage) |
| |
| void | ChangeVolume () |
| |
| float | GetLength (int soundEnum) |
| |
| void | LoadCockpitSound (int soundEnum, const char *path, bool force, SoundConfig *device=nullptr) |
| |
| void | FrameMove (float elapsedTime) |
| |
| float | GetAttenuation (bool applyDensity) const |
| |
|
| static void CALLBACK | AdvanceStage (HSYNC handle, DWORD channel, DWORD data, void *user) |
| |
| static void CALLBACK | MetaData (HSYNC handle, DWORD channel, DWORD data, void *user) |
| |
Definition at line 276 of file Sound.h.
◆ Sound()
◆ AddDelayedSound()
| void Sound::AddDelayedSound |
( |
int |
soundEnum, |
|
|
float |
delay, |
|
|
float |
volume = 1.0f |
|
) |
| |
◆ AddLoopingVehicleSound()
| void Sound::AddLoopingVehicleSound |
( |
int |
soundEnum, |
|
|
unsigned char |
array |
|
) |
| |
◆ AdvanceStage()
| void CALLBACK Sound::AdvanceStage |
( |
HSYNC |
handle, |
|
|
DWORD |
channel, |
|
|
DWORD |
data, |
|
|
void * |
user |
|
) |
| |
|
static |
◆ ChangeCockpit()
| void Sound::ChangeCockpit |
( |
bool |
force | ) |
|
◆ ChangeVolume() [1/3]
| void Sound::ChangeVolume |
( |
SoundConfig * |
config, |
|
|
float |
modVolume |
|
) |
| |
◆ ChangeVolume() [2/3]
| void Sound::ChangeVolume |
( |
int |
soundEnum, |
|
|
float |
modVolume |
|
) |
| |
◆ ChangeVolume() [3/3]
| void Sound::ChangeVolume |
( |
| ) |
|
◆ Close()
◆ EnumDevices()
| void Sound::EnumDevices |
( |
| ) |
|
◆ FrameMove()
| void Sound::FrameMove |
( |
float |
elapsedTime | ) |
|
◆ FrameMoveAAC()
| void Sound::FrameMoveAAC |
( |
| ) |
|
◆ FrameMoveDelayedEffects()
| void Sound::FrameMoveDelayedEffects |
( |
float |
elapsedTime | ) |
|
|
private |
http://www.emmco.org/Documents/Siren%20abstract.pdf
Definition at line 1372 of file Sound.cpp.
◆ FrameMoveDopplerEffects()
| void Sound::FrameMoveDopplerEffects |
( |
float |
elapsedTime | ) |
|
|
private |
◆ GetAttenuation()
| float Sound::GetAttenuation |
( |
bool |
applyDensity | ) |
const |
◆ GetLength()
| float Sound::GetLength |
( |
int |
soundEnum | ) |
|
◆ GlobalAttenuate()
| void Sound::GlobalAttenuate |
( |
float |
prmGaTimeToFadeOut, |
|
|
float |
prmGaTimeToHold, |
|
|
float |
prmGaTimeToFadeIn, |
|
|
int |
soundEnum, |
|
|
float |
prmExTimeToFadeIn, |
|
|
float |
prmExTimeToHold, |
|
|
float |
prmExTimeToFadeOut, |
|
|
float |
volumeAdj = 1.0f |
|
) |
| |
◆ Init()
◆ InitDevice()
◆ LegacySoundRequestUniverse()
| void Sound::LegacySoundRequestUniverse |
( |
SServerPacket |
datapacket | ) |
|
◆ LoadCockpitSound()
| void Sound::LoadCockpitSound |
( |
int |
soundEnum, |
|
|
const char * |
path, |
|
|
bool |
force, |
|
|
SoundConfig * |
device = nullptr |
|
) |
| |
◆ LoadSound()
| void Sound::LoadSound |
( |
int |
soundEnum, |
|
|
SoundConfig * |
device = nullptr |
|
) |
| |
|
private |
◆ LoadSounds()
| void Sound::LoadSounds |
( |
short |
instage | ) |
|
◆ MetaData()
| void CALLBACK Sound::MetaData |
( |
HSYNC |
handle, |
|
|
DWORD |
channel, |
|
|
DWORD |
data, |
|
|
void * |
user |
|
) |
| |
|
static |
◆ Play()
| float Sound::Play |
( |
int |
soundEnum | ) |
|
◆ PlayAudioData()
| void Sound::PlayAudioData |
( |
unsigned char * |
data, |
|
|
size_t |
length |
|
) |
| |
◆ PlayEx()
| void Sound::PlayEx |
( |
int |
soundEnum, |
|
|
bool |
loop, |
|
|
float |
volume = 1.0f, |
|
|
float |
frequencyMod = 1.0f, |
|
|
float |
pan = 0.0f, |
|
|
bool |
restart = true |
|
) |
| |
◆ PrecipWindSoundBarrier()
| void Sound::PrecipWindSoundBarrier |
( |
D3DXVECTOR3 |
relativewind, |
|
|
float |
elapsedTime |
|
) |
| |
- Todo:
- this was all wrong ... should be D3DXVec3Lerp(&relativewindtarget, &relativewindtarget, &relativewind, elapsedTime); and then use relativewindtarget not relativewind
- Todo:
- not really how it works... the wave it makes is continuous so they could hit someone with the wave later if they maintain supersonic flight
Definition at line 1764 of file Sound.cpp.
◆ RemoveLoopingVehicleSound()
| void Sound::RemoveLoopingVehicleSound |
( |
int |
soundEnum, |
|
|
unsigned char |
array |
|
) |
| |
◆ Reset()
◆ Stop()
| void Sound::Stop |
( |
int |
soundEnum | ) |
|
◆ Trace()
| void Sound::Trace |
( |
const char * |
msg, |
|
|
Logger::Level |
severity = Logger::Level::Info |
|
) |
| const |
|
private |
◆ comms
| HSTREAM Sound::comms = NULL |
|
private |
◆ currentRadioDevice
| char Sound::currentRadioDevice = -2 |
|
private |
◆ currentSoundDevice
| char Sound::currentSoundDevice = -2 |
|
private |
◆ delayedeffects
◆ deviceGuids
| std::vector<GUID> Sound::deviceGuids |
◆ deviceNames
| std::vector<std::string> Sound::deviceNames |
◆ excludeFromGlobalAttenuate
| int Sound::excludeFromGlobalAttenuate = -1 |
|
private |
◆ exTimeToFadeIn
| float Sound::exTimeToFadeIn = 0.0f |
|
private |
◆ exTimeToFadeOut
| float Sound::exTimeToFadeOut = 0.0f |
|
private |
◆ exTimeToHold
| float Sound::exTimeToHold = 0.0f |
|
private |
◆ g_bRadioPlaying
| bool Sound::g_bRadioPlaying = false |
|
private |
◆ g_pSoundIntro
| HSTREAM Sound::g_pSoundIntro = NULL |
◆ game
◆ gaTimer
| float Sound::gaTimer = 0.0f |
|
private |
◆ gaTimeToFadeIn
| float Sound::gaTimeToFadeIn = 0.0f |
|
private |
◆ gaTimeToFadeOut
| float Sound::gaTimeToFadeOut = 0.0f |
|
private |
◆ gaTimeToHold
| float Sound::gaTimeToHold = 0.0f |
|
private |
◆ gaVolumeAdj
| float Sound::gaVolumeAdj = 0.0f |
|
private |
◆ globalAttenuate
| float Sound::globalAttenuate = 1.0f |
|
private |
◆ headpan
| float Sound::headpan = 0.0f |
|
private |
◆ hsync
| HSYNC Sound::hsync = NULL |
◆ issuedWarning
| bool Sound::issuedWarning = false |
|
private |
◆ loopingeffects
◆ loopintro
| bool Sound::loopintro = true |
◆ maxrate
| const float Sound::maxrate = 100000 |
|
private |
◆ metadata
| char Sound::metadata[999] = { 0 } |
|
private |
◆ minrate
| const float Sound::minrate = 100 |
|
private |
◆ musicdone
| float Sound::musicdone = 0.0f |
◆ musicleft
| float Sound::musicleft = 0.0f |
◆ musicstage
◆ oldFrequencyMod
| float Sound::oldFrequencyMod = 1.0f |
|
private |
◆ oldFrequencyMod2
| float Sound::oldFrequencyMod2 = 1.0f |
|
private |
◆ oldPan
| float Sound::oldPan = 0.0f |
|
private |
◆ oldPan2
| float Sound::oldPan2 = 0.0f |
|
private |
◆ oldstation
| short Sound::oldstation = -1 |
|
private |
◆ oldtitle
| char Sound::oldtitle[99] = { 0 } |
|
private |
◆ oldvolume
| float Sound::oldvolume = 0.0f |
|
private |
◆ oldvolume2
| float Sound::oldvolume2 = 0.0f |
|
private |
◆ radio
| HSTREAM Sound::radio = NULL |
|
private |
◆ sound_channel
◆ sound_config
◆ sound_device
◆ sound_length
◆ sound_path
◆ sound_rate
◆ sound_sample
◆ sound_volume
◆ station
◆ stationIdentification
| char Sound::stationIdentification = rand() % 3 |
|
private |
The documentation for this class was generated from the following files: