Steam Audio Manager
- SteamAudio.SteamAudioManager : MonoBehaviour
Maintains global state for Steam Audio, manages simulations, and passes simulation results to the audio engine.
Public Static Functions
-
void NotifyAudioListenerChanged()
Notifies Steam Audio that the
AudioListener
has changed.Call this function when you create a new
AudioListener
component (or its equivalent, if you are using third-party audio middleware).Steam Audio attempts to find the
AudioListener
whenever the scene changes, but if theAudioListener
changes dynamically after the scene has been loaded, this function must be called, otherwise simulation results will be incorrect.If the
AudioListener
starts out disabled, but is then enabled after scene load, this function must be called, because Steam Audio does not consider disabledAudioListener
components in its initial search.Use this function if you want Steam Audio to automatically find the new AudioListener.
-
void NotifyAudioListenerChangedTo(Transform listenerTransform)
Notifies Steam Audio that the
AudioListener
has changed to a specificGameObject
.Call this function when you want to explicitly specify a new
AudioListener
component (or its equivalent, if you are using third-party audio middleware).Steam Audio attempts to find the
AudioListener
whenever the scene changes, but if theAudioListener
changes dynamically after the scene has been loaded, this function must be called, otherwise simulation results will be incorrect.If the
AudioListener
starts out disabled, but is then enabled after scene load, this function must be called, because Steam Audio does not consider disabledAudioListener
components in its initial search.- Parameters:
listenerTransform – [in] The
Transform
component attached to theGameObject
that contains theAudioListener
.
-
void NotifyAudioListenerChanged()