Feat: Adding real-time audio visualisation#943
Feat: Adding real-time audio visualisation#943Narqulie wants to merge 2 commits intoaome510:masterfrom
Conversation
Adds an opt-in frequency bar chart to the playback window powered by a sliding-window FFT (rustfft) on the librespot audio stream. - 64 log-scale frequency bands (bass → treble) - Overlapping windows (HOP_SIZE=256) for smooth ~5.8ms update rate - Per-frame decay so bars fade out gracefully (configurable) - Gated behind the existing `streaming` feature - Enabled via `enable_audio_visualization = true` in app.toml Closes aome510#689
|
Implements the frequency visualization requested in #689. What this does Adds an opt-in bar chart to the playback window showing real-time frequency content of the music being played — 64 log-scale bands from bass (left) to treble (right), with a smooth decay so bars fade out gradually rather How it works Rather than using the deprecated Spotify Audio Analysis API, this taps directly into the librespot audio stream. A VisualizationSink wraps the real audio backend, intercepts decoded PCM samples, and runs an FFT using rustfft Key details:
To try it Add to your ~/.config/spotify-player/app.toml: enable_audio_visualization = true Then build with the streaming feature enabled (the default). |

No description provided.