com.amanotes.audio2
v1.1.0
Published
Pooled audio management system for Unity. Supports BGM, SFX, AudioLibrary, and AudioConfig. Zero dependencies.
Downloads
347
Readme
Audio2
Package: com.amanotes.audio2 v1.1.0
Unity: 2022.3+
Namespace: Amanotes.Orchestra
Dependencies: com.cysharp.unitask 2.5.10
Pooled audio management system for Unity. Supports BGM with crossfade, SFX with semitone shifting, AudioLibrary asset management, and per-channel volume control.
Quick Start
// Initialize with config
AudioMaster2.Initialize(audioConfig);
// Play SFX
AudioMaster2.PlaySFX("click");
AudioMaster2.PlaySFXWithSemitone("note", 3);
// Play BGM with crossfade
AudioMaster2.PlayBGM("main_theme", isLoop: true, crossfadeTime: 1f);
AudioMaster2.StopCurrentBGM(crossfadeTime: 0.5f);
// Channel control
AudioMaster2.SwitchAudioChannel("sfx", isOn: false);
bool isMuted = AudioMaster2.IsVolumeChannelOn("sfx");Key Types
AudioMaster2— static API for BGM/SFX playback with object poolingAudioConfig— ScriptableObject for volume channels and mixer configurationAudioLibrary— ScriptableObject mapping string IDs to AudioClipsAudioList— clip collection with lookup table initializationAudioContent— individual audio entry with clip and metadata
Installing in your project
Add to your Packages/manifest.json:
{
"dependencies": {
"com.amanotes.audio2": "1.1.0",
"com.cysharp.unitask": "2.5.10"
},
"scopedRegistries": [
{
"name": "npmjs",
"url": "https://registry.npmjs.org/",
"scopes": [
"com.amanotes"
]
},
{
"name": "OpenUPM",
"url": "https://package.openupm.com",
"scopes": [
"com.cysharp"
]
}
]
}Then open Unity — the Package Manager will resolve and download all packages automatically.
