-
-
Notifications
You must be signed in to change notification settings - Fork 29
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
Display the used volume normalization mode/values instead of target #651
base: main
Are you sure you want to change the base?
Conversation
This PR conflicts with the changes made in music-assistant/server#1662 - the API no longer returns the It looks like there's also an issue regarding types in some of the comparisons - I'm checking if |
Since then I patched the HA client so we could consider adding those fields back by removing that temporary patch in the serialization. I agree it would be useful to display what is being applied. In fact I invision this dialog to be much more informative at some point: Audio source Audio target/output Maybe we should just extend the streamdetails object with extra details. Let me know if you want me to reinstate the loudness measurement on the streamdetails object now before merging this one or merge this one first and then do an extra step in a new PR. |
If you check for null it will also catch undefined. For now they are undefined due to that hack to fix HA-side after I changed the value type of the loudness measurement but now that HA is patched we could revert that. EDIT: If you want to catch both undefined and null you need to check |
// computed properties | ||
const streamDetails = computed(() => { | ||
return store.activePlayerQueue?.current_item?.streamdetails; | ||
}); | ||
const loudness = computed(() => { | ||
let sd = streamDetails.value; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let sd = streamDetails.value; | |
const sd = streamDetails.value; |
@kepstin Is this still being progressed? |
These values have been restored |
@kepstin are you able to progress this? |
Displaying the target loudness in the stream details display isn't very useful, since that's a user-configured setting and does not change depending on what is being played. In place of that number, show information about what volume normalization is currently being applied.
If measurements are available, and are being used, it will display either the track or album measured loudness depending on whether
prefer_album_loudness
is set.Otherwise, it will display "Dynamic volume normalization" if loudnorm is being used in dynamic mode - or "Fixed gain correction" if fixed gain is being applied.
If no volume normalization is being applied, the loudness information row will not be displayed.