File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed
Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change 1+ # Audio synced playback
2+
3+ <!-- aui:example audio -->
4+ Demonstrates synchronized playback of multiple audio tracks with per-track volume and a simple visual gain meter.
5+
6+ - Choose a sample set with radio buttons; each set contains a base layer and additional layers.
7+ - Control playback with Play/Pause and toggle Loop to automatically restart when tracks finish.
8+ - Each track row shows:
9+ - A small color bar reflecting recent amplitude changes (greener = higher activity).
10+ - A volume slider (0–100%) applied in real time.
11+
12+ When any track finishes, the example resets all tracks to keep them aligned. If Loop is enabled, playback restarts
13+ immediately.
14+
15+ ## UI
16+
17+ - Playback controls: Play, Pause, Loop.
18+ - Sample selector: radio group to switch between predefined layered samples.
19+ - Tracks panel: rows for each layer with activity indicator and volume slider.
20+
21+ ## Concepts
22+
23+ - Synchronized start/stop across multiple audio players.
24+ - Reactive state for play/pause, loop, selection, and per-track volume.
25+ - Lightweight visual gain analysis for a live activity indicator.
You can’t perform that action at this time.
0 commit comments