Nuclide
Software Development Kit for id Technology
|
Shared-Entity: Sound System Scape/Reverb Controller.
QUAKED NSSoundScape (1 .5 0) (-8 -8 -8) (8 8 8)
Environmental soundscape and reverb controller.
Public Member Functions | |
void | NSSoundScape (void) |
nonvirtual void | SetDensity (float) |
Reverb Density, controls the effect of the reverb. More... | |
nonvirtual void | SetDiffusion (float) |
Reverb Diffusion, linear multiplier. More... | |
nonvirtual void | SetGain (float) |
Reverb Gain, linear gain control. More... | |
nonvirtual void | SetGainHF (float) |
Reverb Gain HF, linear gain control for high frequency sounds. More... | |
nonvirtual void | SetGainLF (float) |
Reverb Gain LF, linear gain control for low frequency sounds. More... | |
nonvirtual void | SetDecayTime (float) |
Decay Time, in seconds. More... | |
nonvirtual void | SetDecayHFRatio (float) |
Decay HF Ratio, linear multiplier. More... | |
nonvirtual void | SetDecayLFRatio (float) |
Decay LF Ratio, linear multiplier. More... | |
nonvirtual void | SetReflectionGain (float) |
Reflection Gain, linear gain control. More... | |
nonvirtual void | SetReflectionDelay (float) |
Reflection Delay, in seconds. More... | |
nonvirtual void | SetReflectionPan (vector) |
Reflection Pan. More... | |
nonvirtual void | SetLateGain (float) |
Late Reverb Gain, linear gain control. More... | |
nonvirtual void | SetLateDelay (float) |
Late Reverb Delay, in seconds. More... | |
nonvirtual void | SetLatePan (vector) |
Late Reverb Pan. More... | |
nonvirtual void | SetEchoTime (float) |
Echo Time, in seconds. More... | |
nonvirtual void | SetEchoDepth (float) |
Echo Depth, linear multiplier. More... | |
nonvirtual void | SetModulationTime (float) |
Modulation Time, in seconds. More... | |
nonvirtual void | SetModulationDepth (float) |
Modulation Depth, linear multiplier. More... | |
nonvirtual void | SetAirAbsorptionGainHF (float) |
Air Absorption Gain HF, linear gain per meter. More... | |
nonvirtual void | SetHFReference (float) |
HF Reference, in Hz. More... | |
nonvirtual void | SetLFReference (float) |
LF Reference, in Hz. More... | |
nonvirtual void | SetRoomRolloffFactor (float) |
Room Rolloff Factor, linear multiplier. More... | |
nonvirtual void | SetDecayHFLimit (int) |
Decay HF Limit, integer value. More... | |
nonvirtual void | SetRadius (float) |
Sets the radius of the soundscape. More... | |
nonvirtual float | GetDensity (void) |
nonvirtual float | GetDiffusion (void) |
nonvirtual float | GetGain (void) |
nonvirtual float | GetGainHF (void) |
nonvirtual float | GetGainLF (void) |
nonvirtual float | GetDecayTime (void) |
nonvirtual float | GetDecayHFRatio (void) |
nonvirtual float | GetDecayLFRatio (void) |
nonvirtual float | GetReflectionGain (void) |
nonvirtual float | GetReflectionDelay (void) |
nonvirtual vector | GetReflectionPan (void) |
nonvirtual float | GetLateGain (void) |
nonvirtual float | GetLateDelay (void) |
nonvirtual vector | GetLatePan (void) |
nonvirtual float | GetEchoTime (void) |
nonvirtual float | GetEchoDepth (void) |
nonvirtual float | GetModulationTime (void) |
nonvirtual float | GetModulationDepth (void) |
nonvirtual float | GetAirAbsorptionGainHF (void) |
nonvirtual float | GetHFReference (void) |
nonvirtual float | GetLFReference (void) |
nonvirtual float | GetRoomRolloffFactor (void) |
nonvirtual int | GetDecayHFLimit (void) |
nonvirtual float | GetRadius (void) |
virtual void | SpawnKey (string, string) |
This method handles entity key/value pairs on map load. More... | |
virtual void | Input (entity, string, string) |
Called when we are being prompted by another object/function with an input message. More... | |
virtual void | EvaluateEntity (void) |
Run each tic after physics are run to determine if we need to send updates over the network. More... | |
virtual float | SendEntity (entity, float) |
Called by the engine whenever we need to send a client an update about this entity. More... | |
virtual void | Save (float) |
Handles saving a copy of this entity to a given filehandle. More... | |
virtual void | Restore (string, string) |
Similar to NSIO::SpawnKey but for save-game fields. More... | |
nonvirtual bool | LoadFromEFX (string) |
virtual void | DebugDraw (void) |
virtual void | ReceiveEntity (float, float) |
Client: Handles network updates from the server for the associated entity. More... | |
nonvirtual void | SetupEFXReverb (reverbinfo_t *) |
void NSSoundScape::NSSoundScape | ( | void | ) |
|
virtual |
Reimplemented from NSPointTrigger.
|
virtual |
Run each tic after physics are run to determine if we need to send updates over the network.
Reimplemented from NSEntity.
float NSSoundScape::GetAirAbsorptionGainHF | ( | void | ) |
int NSSoundScape::GetDecayHFLimit | ( | void | ) |
float NSSoundScape::GetDecayHFRatio | ( | void | ) |
float NSSoundScape::GetDecayLFRatio | ( | void | ) |
float NSSoundScape::GetDecayTime | ( | void | ) |
float NSSoundScape::GetDensity | ( | void | ) |
float NSSoundScape::GetDiffusion | ( | void | ) |
float NSSoundScape::GetEchoDepth | ( | void | ) |
float NSSoundScape::GetEchoTime | ( | void | ) |
float NSSoundScape::GetGain | ( | void | ) |
float NSSoundScape::GetGainHF | ( | void | ) |
float NSSoundScape::GetGainLF | ( | void | ) |
float NSSoundScape::GetHFReference | ( | void | ) |
float NSSoundScape::GetLateDelay | ( | void | ) |
float NSSoundScape::GetLateGain | ( | void | ) |
vector NSSoundScape::GetLatePan | ( | void | ) |
float NSSoundScape::GetLFReference | ( | void | ) |
float NSSoundScape::GetModulationDepth | ( | void | ) |
float NSSoundScape::GetModulationTime | ( | void | ) |
float NSSoundScape::GetRadius | ( | void | ) |
float NSSoundScape::GetReflectionDelay | ( | void | ) |
float NSSoundScape::GetReflectionGain | ( | void | ) |
vector NSSoundScape::GetReflectionPan | ( | void | ) |
float NSSoundScape::GetRoomRolloffFactor | ( | void | ) |
|
virtual |
Called when we are being prompted by another object/function with an input message.
Reimplemented from NSEntity.
bool NSSoundScape::LoadFromEFX | ( | string | efxFile | ) |
|
virtual |
Client: Handles network updates from the server for the associated entity.
Reimplemented from NSEntity.
|
virtual |
Similar to NSIO::SpawnKey
but for save-game fields.
Whatever you write into file handles within your NSIO::Save()
method needs to be read back in here.
Reimplemented from NSPointTrigger.
|
virtual |
Handles saving a copy of this entity to a given filehandle.
Within you want to use the NSIO::SaveFloat() etc. methods to write the internal member attributes to the specified file handle.
Reimplemented from NSPointTrigger.
|
virtual |
Called by the engine whenever we need to send a client an update about this entity.
Reimplemented from NSEntity.
void NSSoundScape::SetAirAbsorptionGainHF | ( | float | newAirAbsorptionGainHF | ) |
Air Absorption Gain HF, linear gain per meter.
Values 0.892f
to 1.0f
. Default is 0.994f
.
void NSSoundScape::SetDecayHFLimit | ( | int | newDecayHFLimit | ) |
Decay HF Limit, integer value.
Values are 0i
(false) and 1i
(true). Default is 1i
(true).
void NSSoundScape::SetDecayHFRatio | ( | float | newDecayHFRatio | ) |
Decay HF Ratio, linear multiplier.
Values 0.1f
to 20.0f
. Default is 0.83f
.
void NSSoundScape::SetDecayLFRatio | ( | float | newDecayLFRatio | ) |
Decay LF Ratio, linear multiplier.
Values 0.1f
to 20.0f
. Default is 1.0f
.
void NSSoundScape::SetDecayTime | ( | float | newDecayTime | ) |
Decay Time, in seconds.
Values 0.1f
to 20.0f
. Default is 1.49f
.
void NSSoundScape::SetDensity | ( | float | newDensity | ) |
Reverb Density, controls the effect of the reverb.
Values 0.0f
to 1.0f
. Default is 1.0f
.
void NSSoundScape::SetDiffusion | ( | float | newDiffusion | ) |
Reverb Diffusion, linear multiplier.
Values 0.0f
to 1.0f
. Default is 1.0f
.
void NSSoundScape::SetEchoDepth | ( | float | newEchoDepth | ) |
Echo Depth, linear multiplier.
Values 0.0f
to 1.0f
. Default is 0.0f
.
void NSSoundScape::SetEchoTime | ( | float | newLateEchoTime | ) |
Echo Time, in seconds.
Values 0.075f
to 0.25f
. Default is 0.25f
.
void NSSoundScape::SetGain | ( | float | newGain | ) |
Reverb Gain, linear gain control.
Affects the volume of sound reflections and reverberation. Values 0.0f
to 1.0f
. Default is 0.32f
.
void NSSoundScape::SetGainHF | ( | float | newGainHF | ) |
Reverb Gain HF, linear gain control for high frequency sounds.
Values 0.0f
to 1.0f
. Default is 0.89f
.
void NSSoundScape::SetGainLF | ( | float | newGainLF | ) |
Reverb Gain LF, linear gain control for low frequency sounds.
Values 0.0f
to 1.0f
. Default is 0.0f
.
void NSSoundScape::SetHFReference | ( | float | newHFReference | ) |
HF Reference, in Hz.
Values 1000.0f
to 20000.0f
. Default is 5000.0f
.
void NSSoundScape::SetLateDelay | ( | float | newLateDelay | ) |
Late Reverb Delay, in seconds.
values 0.0f
to 0.1f
. Default is 0.011f
.
void NSSoundScape::SetLateGain | ( | float | newLateGain | ) |
Late Reverb Gain, linear gain control.
Values 0.0f
to 10.0f
. Default is 1.26f
.
void NSSoundScape::SetLatePan | ( | vector | newLatePan | ) |
Late Reverb Pan.
X = Left/Right, Y = Up/Down, Z = Forward/Back. Values from -1.0f
to 1.0
on each axis. Default is [0,0,0]
.
void NSSoundScape::SetLFReference | ( | float | newLFReference | ) |
LF Reference, in Hz.
Values 20.0f
to 1000.0f
. Default is 250.0f
.
void NSSoundScape::SetModulationDepth | ( | float | newModulationDepth | ) |
Modulation Depth, linear multiplier.
Values 0.0f
to 1.0f
. Default is 0.0f
.
void NSSoundScape::SetModulationTime | ( | float | newModulationTime | ) |
Modulation Time, in seconds.
Values 0.004f
to 4.0f
. Default is 0.25f
.
void NSSoundScape::SetRadius | ( | float | newRadius | ) |
Sets the radius of the soundscape.
When a client is outside the radius the effects are nil.
void NSSoundScape::SetReflectionDelay | ( | float | newReflectionDelay | ) |
Reflection Delay, in seconds.
Values 0.0f
to 0.3f
. Default is 0.007f
.
void NSSoundScape::SetReflectionGain | ( | float | newReflectionGain | ) |
Reflection Gain, linear gain control.
Values 0.0f
to 3.16f
. Default is 0.05f
.
void NSSoundScape::SetReflectionPan | ( | vector | newReflectionPan | ) |
Reflection Pan.
X = Left/Right, Y = Up/Down, Z = Forward/Back. Values from -1.0f
to 1.0
on each axis. Default is [0,0,0]
.
void NSSoundScape::SetRoomRolloffFactor | ( | float | newRoomRolloffFactor | ) |
Room Rolloff Factor, linear multiplier.
Values 0.0f
to 10.0f
. Default is 0.0f
.
void NSSoundScape::SetupEFXReverb | ( | reverbinfo_t * | info | ) |
|
virtual |
This method handles entity key/value pairs on map load.
You can easily convert the strValue
parameter using the ReadFloat etc. methods that are part of NSIO.
Reimplemented from NSPointTrigger.
Reimplemented in env_sound.