Skip to content
Ambiguous-InteractivePublic

About

Data-driven sound effects and music for Unity: cue libraries, a pooled voice player with priority and throttling, and music with fades, ducking and overrides.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

104 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DxAudio

DxAudio. Cue assets, pooled voices and music ducks.

Documentation Unity 2021.3 or newer npm package version OpenUPM package version MIT No Attribution license

Data-driven sound effects and music for Unity, with no package dependencies.

Docs | Quickstart | Editor tools | Changelog | Sample scene

30-second tour

Give your players a cue keyed door and a music track with the context level-1. Assign a MusicDuck for dialogue.

[SerializeField] private SfxPlayer _sfx;
[SerializeField] private MusicPlayer _music;
[SerializeField] private MusicDuck _dialogueDuck;
private MusicDuckLease _dialogue;

public void OpenDoor() => _sfx.Play("door");
public void EnterLevel() => _music.PlayContext("level-1");
public void BeginDialogue() => _dialogue = _music.Duck(_dialogueDuck, holder: this);
public void EndDialogue() => _music.Release(_dialogue);

The quickstart shows how to create the assets and set up the scene.

Install

DxAudio supports Unity 2021.3 and newer.

OpenUPM

Run this command with the OpenUPM CLI.

openupm add com.wallstop-studios.dxaudio
npm registry

Add the registry and package to Packages/manifest.json.

{
    "scopedRegistries": [
        {
            "name": "npmjs",
            "url": "https://registry.npmjs.org",
            "scopes": ["com.wallstop-studios"]
        }
    ],
    "dependencies": {
        "com.wallstop-studios.dxaudio": "0.4.0"
    }
}
Git URL

In Unity Package Manager, choose + > Add package from git URL.

https://github.com/Ambiguous-Interactive/DxAudio.git#v0.4.0
Tarball

Download the package tarball from Releases. In Unity Package Manager, choose + > Add package from tarball.

See the install guide for registry setup and sample availability.

What you get

  • Cues. Tune takes, pitch jitter, rate limits, priorities and 3D falloff in assets.
  • Voices. Play from a fixed pool without allocating. Higher-priority cues can replace one-shots, and loops keep their voices.
  • Music. Crossfade between contexts and play temporary overrides.
  • Ducks. Lower and filter music for dialogue, menus and cutscenes. Active ducks compose.

Editor tools

Open Tools > Wallstop Studios > DxAudio > Authoring to audition cues, edit DSP graphs and check libraries.

Cue authoring DSP graph
Cue settings and audition controls Graph with parallel audio routes

Documentation

I want to... Go to
Hear my first sound Getting Started / Quickstart
Duck music under dialogue Guides / Ducks
Understand why a voice gets stolen Concepts / Voice pool
See active voices and ducks Editor Tools / Play Mode diagnostics
Look up a field or message Reference
Fix a sound that did not play Troubleshooting

Part of the Dx family. DxMessaging | DxVisualizer | DxTerminal

MIT No Attribution. Extracted from Isho Boy's audio system.

Snippet compiled in CI.

About

Data-driven sound effects and music for Unity: cue libraries, a pooled voice player with priority and throttling, and music with fades, ducking and overrides.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages