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

@@ -556,8 +556,8 @@ HTML stripped on receive, escaped on send. IRC-only commands are no-ops.
!volume 75 # Set volume (0-100, default 50)
```
Requires: `yt-dlp`, `ffmpeg`, `libopus.so.0` on the host.
Max 50 tracks in queue. Volume applies on next track.
Requires: `yt-dlp`, `ffmpeg`, `libopus` on the host.
Max 50 tracks in queue. Volume changes take effect immediately.
Mumble-only: `!play` replies with error on other adapters, others silently no-op.
## Plugin Template