Sign in Get 3 free credits

Try a job or a niche: tiktok captions, study notes, excel formulas. Press Esc to close.

Flutter positional audio

Adds positional 3D sound to Flutter apps with flutter_soloud, so effects shift and fade as things move around.

Claude's review

8/10 Accurate, detailed 3D audio API guidance with pitfalls, patterns and when to recommend them.

We asked Claude the question you would ask: would I be glad I installed this? We only sell skills it rates 7 or higher.

In detail

Teaches positional (3D) audio in flutter_soloud — play3d/play3dClocked/play3dScheduled, listener position/orientation/velocity, per-voice and per-sound attenuation and Doppler (set3dSource*, set3dDefault*), the per-frame update pattern, and batching the updates of many moving sources (set3dAutoUpdate/update3dAudio). Use when the user asks for spatial audio, positional sound effects, distance-based volume falloff, sounds attached to game entities (enemies, vehicles, gunfire or footsteps at a world position), Doppler effects, or left/right panning based on world position, or when code computes pan and volume by hand from positions.

How you use it

  1. Add it to your pack, then download your pack (1 credit).
  2. In Claude, open Customize > Skills and upload the zip. Code execution needs to be on under Settings > Capabilities.
  3. Ask Claude for the job in your own words. It uses the skill when your request matches what it does. Step by step guide

Safety check

Nothing risky found: no hidden instructions, no download and run, no reading of saved passwords or keys.

An automated scan lowers risk but cannot promise zero risk. How we check skills

Preview

The first lines of SKILL.md
---
name: flutter-soloud-3d-audio
version: 5
description: Teaches positional (3D) audio in flutter_soloud — play3d/play3dClocked/play3dScheduled, listener position/orientation/velocity, per-voice and per-sound attenuation and Doppler (set3dSource*, set3dDefault*), the per-frame update pattern, and batching the updates of many moving sources (set3dAutoUpdate/update3dAudio). Use when the user asks for spatial audio, positional sound effects, distance-based volume falloff, sounds attached to game entities (enemies, vehicles, gunfire or footsteps at a world position), Doppler effects, or left/right panning based on world position, or when code computes pan and volume by hand from positions.
---

flutter_soloud wraps the SoLoud C++ engine's built-in 3D audio. Every voice started with `play3d` has a 3D position and velocity; a single global "listener" (usually your camera or player) hears them. The coordinate system is right-handed (Y up, X right, Z toward the viewer). Unlike audioplayers/just_audio there is no asset "player" object per sound: you get a `SoundHandle` per playing instance and mutate its 3D state through `SoLoud.instance` setters. Also unlike the web Audio API, SoLoud does **not** move anything for you — positions and velocities are snapshots you must update yourself each tick.

## Minimal example

```dart
import 'package:flutter_soloud/flutter_soloud.dart';

Future<void> main() async {
  await SoLoud.instance.init();

  final sound = await SoLoud.instance.loadAsset('assets/sfx/whoosh.mp3');

  // Listener at origin, looking down -Z, head up along +Y.
  SoLoud.instance.set3dListenerParameters(
    0, 0, 0, // position
    0, 0, -1, // at (looking direction)
    0, 1, 0, // up
    0, 0, 0, // velocity (needed for Doppler)
  );

  // Play at (10, 0, -5) moving toward the listener at 5 units/s.
  final handle = SoLoud.instance.play3d(
    sound,
    10, 0, -5, // posX, posY, posZ (positional!)
    velX: -5, // velocity, for Doppler
    looping: true,
  );

  // Required to hear distance falloff — default attenuation is NONE.
  SoLoud.instance.set3dSourceAttenuation(handle, 2, 1); // linear
  SoLoud.instance.set3dSourceMinMaxDistance(handle, 1, 50);

  // Or once on the sound, before playing: every voice started from it
  // later begins with these values.
...

From alnitak's repository, MIT licence.

Related skills

  • Checked

    Flutter SoLoud audio

    Explains how to use the flutter_soloud audio plugin correctly and which feature fits each game sound problem.

    by alnitak 427
    7/101 credit
  • Checked

    Flutter audio scheduling

    Schedules flutter_soloud sounds to the exact sample with low latency, so game and music audio stay in time.

    by alnitak 427
    8/101 credit
  • Checked

    Game Audio Mixing

    Sets up game audio buses, volume sliders, music ducking and adaptive music for Godot, Unity or FMOD.

    by gamedev-skills 13k
    8/101 credit
  • Checked

    Godot game audio

    Wires up sound effects, music and volume sliders in Godot and fixes sounds that go silent or will not loop.

    by gamedev-skills 13k
    8/101 credit
  • Checked

    melonJS Game Audio

    Adds sound effects, music and positional audio to melonJS browser games, and fixes silent or stuck sound.

    by melonjs 6.5k
    8/101 credit
  • Checked

    Podcast show notes

    Turns a podcast transcript into search friendly show notes with timestamps, key quotes and social captions.

    by calebvbi
    7/101 credit

Secure checkout

Credits

AUD

  1. 1Choose
  2. 2Pay on Square
  3. 3Credits added