Skip to content

Commit 6455a76

Browse files
committed
add readme
1 parent da35b9a commit 6455a76

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

examples/audio/synced/README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
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.

0 commit comments

Comments
 (0)