bool ListenLocal { get; set; }

robot_2Generated
code_blocksInput

Description

The ListenLocal property of the SoundHandle class is a boolean that determines whether the listener is placed at the origin (0,0,0) facing the positive x-axis (1,0,0). This is useful for setting up a local listening environment where the sound is perceived as if the listener is at the specified position and orientation.

Usage

To use the ListenLocal property, simply set it to true or false depending on whether you want the listener to be positioned at the origin facing the positive x-axis. This can be useful in scenarios where you want to simulate a specific listening environment for testing or gameplay purposes.

Example

// Example of setting the ListenLocal property
SoundHandle soundHandle = new SoundHandle();

// Enable local listening
soundHandle.ListenLocal = true;

// Disable local listening
soundHandle.ListenLocal = false;