Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: Add DSP pipeline details to stream information #1875

Merged
merged 9 commits into from
Jan 16, 2025

Conversation

maximmaxim345
Copy link
Contributor

@maximmaxim345 maximmaxim345 commented Jan 15, 2025

Depends on: music-assistant/models#32
Companion Frontend PR: music-assistant/frontend#822

Overview

With this PR, details about the DSP are now attached to streamdetails, allowing us to display the DSP processing pipeline to the users.

Implementation Details

To discern between a user-disabled DSP and a DSP disabled by Music Assistant, DSPState was introduced.

The DSP field of StreamDetails should always be up to date, since:

  • Playback is restarted on changes to the DSPConfig
  • DSPDetails are refreshed in case the number of players in the group changes

DSPDetails

DSPDetails is essentially a DSPConfig with some adjustments to add dynamic information, enabling the frontend to display the DSP pipeline at any desired level of detail.

@maximmaxim345 maximmaxim345 changed the title Feat: Feat: Add DSP pipeline details to stream information Jan 15, 2025
@marcelveldt
Copy link
Member

models package has been bumped to unblock this PR

dsp = {}

# player groups have no (explicit) leader since a player group has no audio output
if not player.provider.startswith("player_group"):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the comment seems to imply the reverse of what is happening here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I adjusted the comments to be not as confusing.

@maximmaxim345 maximmaxim345 force-pushed the feat/dsp-streamdetails branch 2 times, most recently from 338c8cb to 9324129 Compare January 16, 2025 12:11
Copy link
Member

@marcelveldt marcelveldt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@marcelveldt marcelveldt force-pushed the feat/dsp-streamdetails branch from 9324129 to 1e01171 Compare January 16, 2025 15:27
@marcelveldt marcelveldt merged commit 892a1f1 into music-assistant:dev Jan 16, 2025
4 checks passed
@maximmaxim345 maximmaxim345 deleted the feat/dsp-streamdetails branch January 17, 2025 07:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants