SFXAmbience

consoledoc.h

A datablock that describes an ambient sound space.

More...

Sound

Reverb environment active in the ambience zone.

Sound track to play in the ambience zone.

float

The rolloff factor to apply to distance-based volume attenuation in this space.

float

The factor to apply to the doppler affect in this space.

states [4]

States to activate when the ambient zone is entered.

Detailed Description

A datablock that describes an ambient sound space.

Each ambience datablock captures the properties of a unique ambient sound space. A sound space is comprised of:

  • an ambient audio track that is played when the listener is inside the space,

  • a reverb environment that is active inside the space, and

  • a number of SFXStates that are activated when entering the space and deactivated when exiting it.

Each of these properties is optional.

An important characteristic of ambient audio spaces is that their unique nature is not determined by their location in space but rather by their SFXAmbience datablock. This means that the same SFXAmbience datablock assigned to multiple locations in a level represents the same unique audio space to the sound system.

This is an important distinction for the ambient sound mixer which will activate a given ambient audio space only once at any one time regardless of how many intersecting audio spaces with the same SFXAmbience datablock assigned the listener may currently be in.

All SFXAmbience instances are automatically added to the global

SFXAmbienceSet
.

At the moment, transitions between reverb environments are not blended and different reverb environments from multiple active SFXAmbiences will not be blended together. This will be added in a future version.

singleton SFXAmbience( Underwater )
{
   environment = AudioEnvUnderwater;
   soundTrack = ScubaSoundList;
   states[ 0 ] = AudioLocationUnderwater;
};

Datablocks and Networking

Sound

SFXEnvironment environment 

Reverb environment active in the ambience zone.

SFX_reverb

SFXTrack soundTrack 

Sound track to play in the ambience zone.

float rolloffFactor 

The rolloff factor to apply to distance-based volume attenuation in this space.

Defaults to 1.0.

note:

This applies to the logarithmic distance model only.

Volume Attenuation

float dopplerFactor 

The factor to apply to the doppler affect in this space.

Defaults to 0.5.

Doppler Effect

SFXState states [4]

States to activate when the ambient zone is entered.

When the ambient sound state is entered, all states associated with the state will be activated (given that they are not disabled) and deactivated when the space is exited again.