AudioSurface AudioSurface { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The AudioSurface property of the Surface class defines the audio properties of the surface for use with Steam Audio. This property is crucial for determining how sound interacts with the surface, affecting how audio is perceived in the game environment.

Usage

To use the AudioSurface property, you can access it directly from an instance of the Surface class. This property is not static, so it must be accessed through a specific surface instance. You can use it to get or set the audio characteristics associated with that surface.

Example

// Example of accessing the AudioSurface property

// Assume 'surface' is an instance of Sandbox.Surface
Sandbox.AudioSurface audioProperties = surface.AudioSurface;

// Modify audio properties if needed
// audioProperties.SomeProperty = newValue;

// Assign a new AudioSurface if required
// surface.AudioSurface = new Sandbox.AudioSurface();