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
AudioListenerhas changed.Call this function when you create a new
AudioListenercomponent (or its equivalent, if you are using third-party audio middleware).Steam Audio attempts to find the
AudioListenerwhenever the scene changes, but if theAudioListenerchanges dynamically after the scene has been loaded, this function must be called, otherwise simulation results will be incorrect.If the
AudioListenerstarts out disabled, but is then enabled after scene load, this function must be called, because Steam Audio does not consider disabledAudioListenercomponents 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
AudioListenerhas changed to a specificGameObject.Call this function when you want to explicitly specify a new
AudioListenercomponent (or its equivalent, if you are using third-party audio middleware).Steam Audio attempts to find the
AudioListenerwhenever the scene changes, but if theAudioListenerchanges dynamically after the scene has been loaded, this function must be called, otherwise simulation results will be incorrect.If the
AudioListenerstarts out disabled, but is then enabled after scene load, this function must be called, because Steam Audio does not consider disabledAudioListenercomponents in its initial search.- Parameters:
listenerTransform – [in] The
Transformcomponent attached to theGameObjectthat contains theAudioListener.
-
void NotifyAudioListenerChanged()