Description
The AudioSurface
property of the Surface
class defines the audio properties of the surface for use with Steam Audio. This property allows you to specify how the surface should interact with audio, such as how sound is absorbed, reflected, or transmitted by the surface.
Usage
To use the AudioSurface
property, you need to have an instance of the Surface
class. You can then get or set the AudioSurface
property to define or retrieve the audio characteristics of the surface.
Example
// Example of setting the AudioSurface property
Surface mySurface = new Surface();
mySurface.AudioSurface = new AudioSurface
{
// Configure audio properties here
};
// Example of getting the AudioSurface property
AudioSurface audioProps = mySurface.AudioSurface;
// Use audioProps to access specific audio settings