Skip to content

Conversation

@SteveMicroNova
Copy link
Contributor

What does this change intend to accomplish?

Does the same as #1063, but for airplay
Airplay does not allow outside sources change the volume of the airplay host, so it's a one way street this time

Checklist

  • Have you tested your changes and ensured they work?
  • Have you checked to ensure there aren't other open Pull Requests for the same update/change?
  • If applicable, have you updated the documentation/manual?
  • If applicable, have you updated the CHANGELOG?
  • Does your submission pass linting & tests? You can test on localhost using ./scripts/test
  • Have you written new tests for your core features/changes, as applicable?
  • If this is a UI change, have you tested it across multiple browser platforms on both desktop and mobile?

Comment on lines +91 to +117
'drift_in_seconds': 2, # allow this number of frames of drift away from exact synchronisation before attempting to correct it
'resync_threshold_in_seconds': 0, # a synchronisation error greater than this will cause resynchronisation; 0 disables it
'log_verbosity': "diagnostics", # "none" means no debug verbosity, "diagnostics" is most verbose.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The log file contained warnings about all of these values, it now has no complaints

@SteveMicroNova SteveMicroNova force-pushed the AirplayVolSync branch 2 times, most recently from 772cb10 to ad8df1e Compare November 19, 2025 21:21
@SteveMicroNova
Copy link
Contributor Author

This will require some internal debate before merging, but I'm going to suggest this is ready for review even if not ready for merging

@SteveMicroNova SteveMicroNova marked this pull request as ready for review November 19, 2025 21:26
@SteveMicroNova SteveMicroNova force-pushed the SpotifyVolumeReflection branch from 7de343e to e83de61 Compare November 26, 2025 14:41
@linknum23 linknum23 marked this pull request as draft November 26, 2025 16:15
@SteveMicroNova SteveMicroNova force-pushed the SpotifyVolumeReflection branch from e83de61 to 7fc8fd7 Compare November 26, 2025 17:42
@SteveMicroNova SteveMicroNova force-pushed the AirplayVolSync branch 4 times, most recently from 94d957b to 672fbaf Compare December 1, 2025 19:21
@SteveMicroNova SteveMicroNova force-pushed the SpotifyVolumeReflection branch from 9e275c2 to 39d9455 Compare December 1, 2025 20:57
Add more docs
Rename some classes, attributes, and variables
Comment on lines +55 to +57
# In any future MPRIS based volume synchronizers, you can check if self.mpris.CanControl is true and then potentially directly set self.mpris.Volume
# Note that we cannot do this due to this line: <property name='Volume' type='d' access='read'/>
# That exists in the MPRIS config xml at https://github.com/mikebrady/shairport-sync/blob/master/org.mpris.MediaPlayer2.xml
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We'll either have to make a PR in shairport-sync or move to a new implementation to make this vol sync a good user experience

Copy link
Contributor

Choose a reason for hiding this comment

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

Since shareport-sync is extremely well maintained I would suggest the PR route.

@SteveMicroNova SteveMicroNova force-pushed the SpotifyVolumeReflection branch 2 times, most recently from 61789c5 to 6d89922 Compare December 5, 2025 21:28
@SteveMicroNova SteveMicroNova mentioned this pull request Dec 15, 2025
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Sync airplay and amplipi volumes Sync AirPlay volume with AmpliPi volume

3 participants