audio

Automate audio loading, playback, and volume control in FlatRedBall2.

11|3|Updated Feb 28, 2026
One-click install
npx skills add https://github.com/vchelaru/FlatRedBall2 --skill audio-vchelaru
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: audio
Source: https://github.com/vchelaru/FlatRedBall2/tree/main/frb-skills/audio
Command: npx skills add https://github.com/vchelaru/FlatRedBall2 --skill audio-vchelaru

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Streamlines integrating and managing audio in FlatRedBall2, including loading songs and sound effects, controlling volumes, and handling in-game audio triggers.

Core Features & Use Cases

  • Lightweight AudioManager usage via Engine.Audio to control playback and volume.
  • Load assets via Engine.Content.Load<Song> and SoundEffect and manage playback for background music and sound effects.
  • Use in typical game scenarios such as background music, collision sounds, and UI audio, with single-audio-per-frame dedup and responsive controls.

Quick Start

Load a Song or SoundEffect and start playback using the AudioManager to verify audio functionality.

Frequently Asked Questions about audio

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I load and play background music in FlatRedBall2?

To play background music in FlatRedBall2, load a Song asset via Engine.Content.Load<Song> and use the AudioManager (Engine.Audio) to control playback and volume. The system supports both MGCB content pipeline and direct file loading backends.

How do I trigger sound effects for collisions and UI events in FlatRedBall2?

Trigger sound effects in FlatRedBall2 by loading a SoundEffect via Engine.Content.Load and playing it through AudioManager. It includes single-audio-per-frame dedup to prevent overlapping collision or UI sounds from playing simultaneously.

Does FlatRedBall2 support loading audio directly from files instead of the MGCB content pipeline?

Yes, FlatRedBall2 audio integration supports direct file loading backends alongside the MGCB content pipeline. You can load songs and sound effects using Engine.Content.Load<Song> and SoundEffect while managing playback through AudioManager.

What is the best way to control game audio volume in FlatRedBall2?

The best way to control game audio volume in FlatRedBall2 is using the AudioManager (Engine.Audio). It coordinates volume control and playback for both background music and sound effects, providing lightweight and responsive audio management.

Why does my FlatRedBall2 sound effect play multiple times in a single frame?

FlatRedBall2 AudioManager implements single-audio-per-frame dedup to prevent sounds from playing multiple times in one frame. If audio triggers are not routing through Engine.Audio, this deduplication mechanism is bypassed.