Molca.AudioFile:
Packages/com.molca.core/Runtime/Audio/AudioManager.csType:
RuntimeSubsystem (child of RuntimeManager prefab)
When to use
UseAudioManager to play music, SFX, and voice audio from AudioLibrary collections. It handles clip caching via Addressables, volume ducking during speech, and mixer group routing through the configured AudioModule.
Role
- Manages three dedicated
AudioSourcechannels: music (looping), SFX (one-shot), voice (with ducking). - Loads audio clips from
AudioLibrarycollections through Addressables with ref-counted caching. - Voice playback temporarily ducks music/SFX volume (duck amount and fade time configurable via Inspector).
- Volume control delegates to
AudioModuleonGlobalSettingsand dispatches typed events on change.
API Reference
Playback controls
Volume controls
Properties
Code
Related
- RuntimeManager —
AudioManageris a child subsystem - Global Settings —
AudioModuleconfigures mixer groups and libraries - EventDispatcher — dispatches
TypedEvents.MasterVolumeChangedetc.