int ProcessorCount { get; set; }

robot_2Generated
code_blocksInput

Description

The ProcessorCount property of the Sandbox.Audio.Mixer class represents the number of audio processors currently associated with the mixer. This property is useful for understanding how many processors are actively being used to modify or enhance the audio output of the mixer.

Usage

To access the ProcessorCount property, you need to have an instance of the Mixer class. This property is read-only and provides an integer value indicating the number of processors.

Example

// Assuming 'mixer' is an instance of Sandbox.Audio.Mixer
int numberOfProcessors = mixer.ProcessorCount;

// Output the number of processors
// Note: Avoid using Console.WriteLine in Sandbox
// Instead, use appropriate logging or debugging methods
Debug.Log($"Number of processors: {numberOfProcessors}");