Sign in Get 3 free credits

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

Flutter SoLoud Volume and Fades

Gets volume, panning, fades, crossfades and anti clipping right in flutter_soloud, without clicks or timer hacks.

Claude's review

8/10 Handle-based volume, pan, fade and oscillator API with crossfade and click-free stop recipes and concrete pitfalls specific to flutter_soloud.

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 volume, pan, fade, oscillator, and scheduled-stop control in the flutter_soloud package, including the handle-based model, setPanAbsolute, getApproximateVolume for VU meters, and the limiter filter as the anti-clipping tool. Use when the user asks to change a sound's volume, pan a sound left/right, fade music in or out, crossfade two tracks, duck music under dialogue, stop a sound without a click, add tremolo/auto-pan/siren effects, build a VU meter, or stop clipping when many sounds play at once, or when code changes volume from a Timer or animation ticks.

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-volume-pan
version: 3
description: Teaches volume, pan, fade, oscillator, and scheduled-stop control in the flutter_soloud package, including the handle-based model, setPanAbsolute, getApproximateVolume for VU meters, and the limiter filter as the anti-clipping tool. Use when the user asks to change a sound's volume, pan a sound left/right, fade music in or out, crossfade two tracks, duck music under dialogue, stop a sound without a click, add tremolo/auto-pan/siren effects, build a VU meter, or stop clipping when many sounds play at once, or when code changes volume from a Timer or animation ticks.
---

Volume and pan in flutter_soloud are applied to **handles** (one per playing
voice), not to the loaded `AudioSource`. Loading a sound gives an `AudioSource`;
each `play()` returns a `SoundHandle` you control afterwards. Global volume is
engine-wide and multiplies with per-handle volume. Fades, oscillations, and
scheduled pause/stop run on the engine's internal fader clock, not on Dart
timers.

## Minimal example

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

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

  final source = await SoLoud.instance.loadAsset('assets/sfx.ogg');

  // volume and pan can be set at play time...
  final handle = SoLoud.instance.play(source, volume: 0.8, pan: -0.5);

  // ...or changed afterwards on the handle.
  SoLoud.instance.setVolume(handle, 0.6);
  SoLoud.instance.setPan(handle, 0); // 0 = centered

  // Fade out over 2 s, then stop 2 s from now.
  SoLoud.instance.fadeVolume(handle, 0, const Duration(seconds: 2));
  SoLoud.instance.scheduleStop(handle, const Duration(seconds: 2));

  SoLoud.instance.setGlobalVolume(0.9); // master volume, all sounds
}
```

## The API shape

...

From alnitak's repository, MIT licence.

Related skills

  • Checked

    Android Gradle Plugin upgrade

    Moves Kotlin Multiplatform projects to Android Gradle Plugin 9 and fixes the build failures it causes.

    by Kotlin 1.1k
    8/101 credit
  • Checked

    CocoaPods to SwiftPM

    Moves Kotlin Multiplatform projects from CocoaPods to Swift Package Manager and updates the Xcode project.

    by Kotlin 1.1k
    8/101 credit
  • Checked

    Kotlin Native build speed

    Diagnoses and fixes slow Kotlin/Native iOS builds in Kotlin Multiplatform projects, both locally and on CI.

    by Kotlin 1.1k
    8/101 credit
  • Checked

    SwiftUI Liquid Glass

    Adds and reviews Liquid Glass in SwiftUI apps for iOS 26, avoiding pitfalls with bars, buttons and scrolling.

    by FloWritesCode 476
    8/101 credit
  • Checked

    Compose Multiplatform UI

    Builds one shared Compose UI in Kotlin for Android, iOS and desktop, so you write your screens once.

    by ericrisco 691
    7/101 credit
  • Checked

    SwiftUI Mac app rules

    Writes and debugs Swift 6 and SwiftUI code for Mac apps, fixing concurrency, state and common compiler errors.

    by daveebbelaar 2k
    7/101 credit

Secure checkout

Credits

AUD

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