fix: make !volume apply immediately during playback

stream_audio now accepts a callable for volume, re-read on each PCM
frame instead of capturing a static float at track start.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
user
2026-02-21 23:20:17 +01:00
parent eae36aa1f9
commit 67b2dc827d
4 changed files with 16 additions and 10 deletions

View File

@@ -1576,7 +1576,7 @@ and voice transmission.
```
- Queue holds up to 50 tracks
- Volume applies from the next track (default: 50%)
- Volume takes effect immediately during playback (default: 50%)
- Title resolved via `yt-dlp --get-title` before playback
- Audio pipeline: `yt-dlp | ffmpeg` subprocess, PCM fed to pymumble
- Commands are Mumble-only; `!play` on other adapters replies with an error,