tippinggame/f8framework/f8-features-audio-workflow

Claude Code and agent skill by tippinggame/f8framework

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Use when implementing or troubleshooting Audio feature workflows — BGM, voice, SFX, 3D audio, volume control, and AudioMixer in F8Framework.

Install

npx vskill@latest install tippinggame/f8framework/f8-features-audio-workflow

SKILL.md

The same SKILL.md was published earlier as tippinggame/f8framework/f8-features-audio-workflow.

Audio Feature Workflow

⚠️ IMPORTANT: Before using this feature, you MUST formally initialize F8Framework in the launch sequence. Ensure ModuleCenter.Initialize(this); has run first, then create the required module, for example FF8.Audio = ModuleCenter.CreateModule<AudioManager>();.

Use this skill when

  • The task is about sound playback, volume, or audio management.
  • The user asks about BGM, voice, SFX, or 3D audio effects.
  • The user needs global pause/resume or audio switch persistence.

Path resolution

  1. Prefer project source at Assets/F8Framework.
  2. If F8Framework is installed as a package, use Packages/F8Framework.
  3. For usage docs, read: Assets/F8Framework/Tests/Audio/README.md

Sources of truth

  • Runtime module: Assets/F8Framework/Runtime/Audio
  • Test docs: Assets/F8Framework/Tests/Audio

Key classes and interfaces

ClassRole
AudioManagerCore module. Access via FF8.Audio.
AudioMusicBackground music player.
AudioVoiceVoice/dialogue player.
AudioEffectSFX and UI sound player.

API quick reference

Background music
csharp
FF8.Audio.PlayMusic("assetName", callback, loop: true, priority: 1, fadeDuration: 3f);
float progress = FF8.Audio.ProgressMusic;
FF8.Audio.SetProgressMusic = 0.5f;
FF8.Audio.VolumeMusic = 0.5f; // Auto-saves to PlayerPrefs
FF8.Audio.SwitchMusic = false; // Auto-saves to PlayerPrefs
FF8.Audio.SetMusicComplete(callback);
Voice
csharp
FF8.Audio.PlayVoice("assetName", callback, loop: true, priority: 1, fadeDuration: 3f);
float progressVoice = FF8.Audio.ProgressVoice;
FF8.Audio.SetProgressVoice = 0.5f;
FF8.Audio.VolumeVoice = 0.5f;
FF8.Audio.SwitchVoice = false;
FF8.Audio.SetVoiceComplete(callback);
Sound effects
csharp
FF8.Audio.PlayUISound("assetName", callback, loop: true, priority: 1, fadeDuration: 3f);
FF8.Audio.PlayBtnClick("assetName", callback);
FF8.Audio.PlayAudioEffect("assetName", callback);
FF8.Audio.VolumeAudioEffect = 0.5f;
FF8.Audio.SwitchAudioEffect = false;
FF8.Audio.SetUISoundComplete(callback);
FF8.Audio.SetBtnClickComplete(callback);
FF8.Audio.SetAudioEffectComplete(callback);
One-shot 2D audio effects
csharp
FF8.Audio.PlayAudioEffect2D("assetName", volume: 1f, maxNum: 5, callback);
3D audio effects
csharp
FF8.Audio.PlayAudioEffect3D("assetName",
isRandom: true,
transform.position,
volume: 1f,
spatialBlend: 1f,
maxNum: 5,
callback);
Global control
csharp
FF8.Audio.PauseAll(); // Pause all, including one-shot AudioEffect instances
FF8.Audio.ResumeAll(); // Resume all, including one-shot AudioEffect instances
FF8.Audio.StopAll(); // Stop all, including one-shot AudioEffect instances
FF8.Audio.UnloadAll(true); // Unload all audio (true = force including in-use)
Optional AudioMixer
csharp
FF8.Audio.SetAudioMixer(FF8.Asset.Load<AudioMixer>("F8AudioMixer"));
Individual channel control
csharp
FF8.Audio.AudioMusic.Pause();
FF8.Audio.AudioMusicVoice.Resume();
FF8.Audio.AudioMusicBtnClick.Stop();
FF8.Audio.AudioMusicUISound.UnloadAll();

Workflow

  1. Load audio clips via AssetManager (place in AssetBundles or Resources).
  2. Choose category: Music (BGM), Voice, AudioEffect (SFX/UI), or one-shot 2D/3D AudioEffect.
  3. Use priority parameter for Music/Voice to handle overlapping tracks.
  4. Volume and switch settings auto-persist to PlayerPrefs.
  5. Use fadeDuration for smooth transitions between tracks.
  6. For 3D effects, set spatialBlend: 1f and provide world position.
  7. Optionally set up F8AudioMixer for advanced mixing control.

Common error handling

ErrorCauseSolution
Audio clip not foundAsset not in loadable directoryEnsure clip is under AssetBundles or Resources, press F8
No sound on mobileVolume or switch set to offCheck SwitchMusic/SwitchAudioEffect values
Memory leak from audioNot unloading unused clipsCall UnloadAll() when transitioning scenes
One-shot SFX stops too earlyTimer using scaled time or clip load failedUse current AudioEffect implementation; it tracks one-shot instances with unscaled clip duration

Cross-module dependencies

  • AssetManager: All audio clips loaded via FF8.Asset.
  • Storage: Volume/switch settings internally stored via PlayerPrefs.

Output checklist

  • Audio category selected (Music/Voice/AudioEffect/one-shot AudioEffect).
  • Volume persistence configured.
  • Files changed and why.
  • Validation status and remaining risks.

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
870
Repository forks
139
7-day trend score
34

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/tippinggame/f8framework/f8-features-audio-workflow/badge)](https://verified-skill.com/skills/tippinggame/f8framework/f8-features-audio-workflow)

Something wrong with this skill or its page? Tell us.