How ivanmurzak/unity-audioloader works
Audio Loader is a Unity runtime library for asynchronously loading audio from local or web locations, caching it in memory and on disk, and optionally assigning it to AudioSource components. The documented workflow starts with main-thread initialization, then a load request checks memory before disk and loads from the requested source if needed; concurrent requests for the same audio wait for the same load. The graph reflects README-documented behavior only: source excerpts were unavailable, so internal call ownership and finer implementation details cannot be verified.
Main entry points: AudioLoader.cs Audio loader · AudioLoader.AudioSource.cs AudioSource adapter · AudioLoader.MemoryCache.cs Memory cache · AudioLoader.DiskCache.cs Disk cache
Components 10
Audio loading
- Initialization
Unity-Package/Assets/root/Runtime/AudioLoader.cs - Audio loader
Unity-Package/Assets/root/Runtime/AudioLoader.cs - Audio source
- Loader settings
Unity-Package/Assets/root/Runtime/AudioLoader.Settings.cs
Audio caches
- Memory cache
Unity-Package/Assets/root/Runtime/AudioLoader.MemoryCache.cs - Disk cache
Unity-Package/Assets/root/Runtime/AudioLoader.DiskCache.cs - Disk worker
Unity-Package/Assets/root/Runtime/LimitedConcurrencyLevelTaskScheduler.cs
Unity integration
- AudioSource adapter
Unity-Package/Assets/root/Runtime/AudioLoader.AudioSource.cs
Other components
- Unity app
- Unity AudioSource
Connections 12
- Unity app → Initialization: initializes on main thread
README.md - Unity app → Audio loader: requests audio
README.md - Audio loader → Loader settings: uses configuration
README.md - Audio loader → Memory cache: checks first
README.md - Audio loader → Disk cache: checks next
README.md - Audio loader → Audio source: loads on cache miss
README.md - Audio source → Audio loader: returns audio
README.md - Audio loader → Disk worker: uses disk worker
README.md - Unity app → AudioSource adapter: requests assignment
README.md - AudioSource adapter → Unity AudioSource: sets clip
README.md - Unity app → Memory cache: manages cache
README.md - Unity app → Disk cache: manages cache
README.md