audio-module

Official

Seamless SFX playback and music crossfades

Authorpunkfuncgames
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Centralizes and simplifies audio management for Unity projects by providing deterministic SFX playback, configurable pooled playback, music playback with smooth crossfades, and reactive volume control so developers avoid scattered ad hoc audio logic across scenes and builds.

Core Features & Use Cases

  • SFX playback: positional and global sound effects with configurable pool sizes and pitch randomization for varied audio.
  • Music management: dual-source A/B music playback enabling seamless crossfades, async play/stop with loop support, and pause/resume behavior on game state changes.
  • Volume & mixer integration: master, music, and SFX reactive volume properties with dB conversion and programmatic setter/getter functions.
  • Event-driven integration: bridges MessagePipe events to audio actions and installs via a dependency-injection friendly installer for modular Unity UPM setups.
  • Use Case: play UI click SFX, spawn explosion sounds at positions, and crossfade into battle music when the game state changes.

Quick Start

Use the audio-module to play a sound effect and crossfade into background music in your Unity project.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: audio-module
Download link: https://github.com/punkfuncgames/tetris-clone/archive/main.zip#audio-module

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.