AudioEngine

static class AudioEngine

Description

AudioEngine holds all audio's that we loaded in memory, allows play its throw the AuidoSource's by Force, and receive input to computer device throw AudioListener.

Static Methods

ReloadAudioDevice

Reloads the audio device. Call this method only if output sound device was removed, suspended or changed. This method will reload all audio data stored in AudioEngine. So if you scene has to much non-streaming audio clips it can take some time. This method called automatically by Force when user change system audio device, but in some situations event that comes from OS can be ignored by Force, and it that case you can call it manually.

Play

Play the audio clip from input AudioSource.

Pause

Pause the audio clip from input AudioSource.

Resume

Resume the audio clip from input AudioSource.

Stop

Stops the audio clip from input AudioSource.

GetAudioListener

Returns the AudioListener component from target scene. If AudioListener was not found null returned.

GetAudioDataCount

Returns the count of loaded audio data in memory.

GetAudioDeviceName

Returns the current device that was already installed.

See Also

AudioSource, AudioListener, AudioClip

Last updated