Add volume normalization, DSP filters (speed, pitch, bassboost), and playlist pagination (#16, #9, #17)

- Implement EBU R128 dynamic volume normalization & ReplayGain leveling in src/music/audio/VolumeNormalizer.mjs and commands/normalize.mjs (#16)
- Add real-time audio filter hot-reloading in PlaybackMixin.mjs and FluxerAudioBridge.mjs (#9)
- Add commands for %bassboost (low/medium/hard), %speed (0.5x-2.0x), and %pitch (0.5x-2.0x) (#9)
- Implement non-blocking background queue ingestion with progressive progress updates for large Spotify & SoundCloud playlists in SearchMixin.mjs (#17)
- Configure playlistLoadLimit: 10 in docker/nodelink.config.json (#17)
- Update README documentation and commands table (total 43 commands)
This commit is contained in:
NoLogicAlan committed 2026-10-22 01:59:45 +03:00
1 parent 90a53f047f
commit 351336ea19
13 files changed
+621 -23

No files matched your search

+12 -11
View File
@@ -146,8 +146,9 @@ const PlaybackMixin = {
if (!this._voiceConn || this.leaving) return;
if (this.preferredVolume !== 1 && this._voiceConn) {
try { this._voiceConn.setVolume(this.preferredVolume * 100); } catch(_) {}
if (this._voiceConn) {
const vol = this.getEffectiveVolume ? this.getEffectiveVolume(songData) : (this.preferredVolume * 100);
try { this._voiceConn.setVolume(vol); } catch(_) {}
}
if (!this._voiceConn || this.leaving) return;
@@ -491,24 +492,24 @@ const PlaybackMixin = {
return { ok: false, reason: "Player not bound to a guild." };
}
if (filterMeta && !isLoadstreamEnabled()) {
logger.warn("[Player] applyFilter rejected — loadstream route disabled (audio.allowLoadstream), filters are NodeLink server-side effects");
return {
ok: false,
reason: "filters need the NodeLink loadstream route — set audio.allowLoadstream to true in config.json; playback is unfiltered in trackstream mode",
};
}
const current = this.queue.getCurrent();
this.activeFilter = filterMeta ?? null;
this.activeFilterPayload = filterMeta ? filterPayload : null;
this.activeFilterPayload = filterMeta && Object.keys(filterPayload || {}).length > 0 ? filterPayload : null;
this.emit("filter", this.activeFilter);
if (!current?.encoded || !this._voiceConn) {
return { ok: true, pending: true };
}
// Hot-apply filter immediately to currently playing song
const pos = this.computePosition ? this.computePosition() : (Date.now() - (this.startedPlaying || Date.now()));
try {
await this.seekToPosition(Math.max(0, pos));
} catch (e) {
logger.warn("[Player] Hot-apply filter re-seek error:", e?.message);
}
return { ok: true };
},