From 4e782807d8dd848018e33ddd5b874e16feb83bbe Mon Sep 17 00:00:00 2001 From: Christopher Snowhill Date: Thu, 16 Jun 2022 23:31:34 -0700 Subject: [PATCH] [ReplayGain / Volume] Fix default volume value Fix the default volume scale reading for newly added tracks, as this value should be 1 for any files which do not have tags. Also add an override to the tag applying function, to reset the default on tag re-read operations. Please reload the tags or re-add your files to fix them playing silently. Signed-off-by: Christopher Snowhill --- Base.lproj/MainMenu.xib | 8 +++----- DataModel.xcdatamodeld/DataModel.xcdatamodel/contents | 2 +- Playlist/PlaylistEntry.m | 1 + 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/Base.lproj/MainMenu.xib b/Base.lproj/MainMenu.xib index c7a340b43..ea0a92df8 100644 --- a/Base.lproj/MainMenu.xib +++ b/Base.lproj/MainMenu.xib @@ -98,11 +98,9 @@ - - - - - + + + diff --git a/DataModel.xcdatamodeld/DataModel.xcdatamodel/contents b/DataModel.xcdatamodeld/DataModel.xcdatamodel/contents index dec896c75..57e547d82 100644 --- a/DataModel.xcdatamodeld/DataModel.xcdatamodel/contents +++ b/DataModel.xcdatamodeld/DataModel.xcdatamodel/contents @@ -48,7 +48,7 @@ - + diff --git a/Playlist/PlaylistEntry.m b/Playlist/PlaylistEntry.m index 3ae4a3c5c..6b8238c8a 100644 --- a/Playlist/PlaylistEntry.m +++ b/Playlist/PlaylistEntry.m @@ -486,6 +486,7 @@ NSURL *_Nullable urlForPath(NSString *_Nullable path) { self.error = YES; self.errorMessage = @"Unable to retrieve metadata."; } else { + self.volume = 1; [self setValuesForKeysWithDictionary:metadata]; }