Gamepangin has provided a system for your in-game audio needs easily. The following are the features provided:
Play / Stop / Pause / Resume
Play clip with full settings : loop, volume, pitch, pan, spatial blend, bypasses, priority, reverb, doppler level, spread, rolloff mode, distance
2D & 3D spatial support
Provided Audio Mixer and Track (Master, Sfx, Music, UI)
Stop / Pause / Resume all tracks
Stop / Pause / Resume all audio
Mute / Set volume each tracks
Integrated with Object Pooling for maximum performance
Integrated with Save Load for persistence settings
and more...
Audio Clip Settings
Before you can play audio, you must create an AudioClipSettings scriptable object by right clicking on the Project Window > Create > Gamepangin > Audio > Clip
Audio Manager Singleton
Before calling the API, make sure you have Audio Manager in your scene. To make it you can use the Gamepangin menu > Audio > Audio Manager
Public API
Play Sound
// Play sound via unique idAudioManager.Instance.PlaySound(string id)// Play sound via AudioClipSettings referenceAudioManager.Instance.PlaySound(AudioClipSettings clip)