Controlling AL Execution

The application can temporarily disable certain AL capabilities on a per Context basis. This allows the driver implementation to optimize for certain subsets of operations. Enabling and disabling capabilities is handled using a function pair.

void Enable ( enum target );

void Disable ( enum target );

The application can also query whether a given capability is currently enabled or not.

boolean IsEnabled ( enum target );

If the token used to specify target is not legal, an INVALID_ENUM error will be generated.

At this time, this mechanism is not used. There are no valid targets.

NoteAnnotation (Enable/Disable)
 

Currently, AL is controlled exploiting existing commands. For example, to disable sound output but not processing, the Listener can be muted setting GAIN to zero. Selecting NONE as the distance model disables distance attenuation. Setting DOPPLER_FACTOR to zero disables the Doppler Effect. A redundant mechanism to accomplish the same is not needed.