Repository navigation
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds a Linux-only (
#[cfg(target_os = "linux")]) Adaptive Equalizer feature that monitors active media players via D-Bus MPRIS (org.mpris.MediaPlayer2.*), detects the genre of the currently playing track (with special handling for browser / YouTube Music metadata), and automatically switches the device's built-inPresetEqualizerProfile.Related to the genre-based equalizer switching use case mentioned in #348.
What's Included
openscq30-lib(adaptive_eqmodule, Linux only):org.mpris.MediaPlayer2.*session bus players and parsesPlaybackStatusandMetadata(xesam:title,xesam:artist,xesam:album,xesam:genre,xesam:url).- Topic,VEVO,(Official Video),(feat. ...), and extractsArtist - Titlewhen the uploader channel is a record label).acoustic,unplugged,piano,podcast,audiobook,phonk,lo-fi)xesam:genremetadata--no-onlinein CLI)adaptive_eq.jsoninside the application config directory.openscq30-gui(Adaptive EQnav tab, Linux only):en) and Turkish (tr) Fluent translations.openscq30-cli(adaptive-eqsubcommand, Linux only):openscq30 adaptive-eq(andopenscq30 device -a <MAC> adaptive-eq) with--once,--dry-run,--all-players,--no-online,--default-profile,--interval, and--jsonflags.Platform Compatibility
All changes are gated behind
#[cfg(target_os = "linux")]and use standard library process calls without modifyingCargo.tomlorCargo.lock, so Windows and Android builds remain unaffected.Images