playback: make Auto the default ReplayGain mode

Use Auto for the preference fallback, the settings initial state and the controller's pre-preference default. Existing stored modes are unchanged.
This commit is contained in:
austinried
2026-10-19 14:13:22 +00:00
parent 0bd8f1bda8
commit d81efe168e
6 changed files with 7 additions and 7 deletions
@@ -210,13 +210,13 @@ class UserPreferencesTest {
}
@Test
fun replayGainDefaultsToTrackModeAndRoundTrips() =
fun replayGainDefaultsToAutoModeAndRoundTrips() =
runTest {
val file = File.createTempFile("user-prefs", ".preferences_pb").apply { delete() }
val store = PreferenceDataStoreFactory.create(scope = backgroundScope) { file }
val prefs = UserPreferences(store)
assertEquals(ReplayGainMode.Track, prefs.replayGainMode().first())
assertEquals(ReplayGainMode.Auto, prefs.replayGainMode().first())
assertEquals(0f, prefs.replayGainPreampDb().first(), 0f)
prefs.setReplayGainMode(ReplayGainMode.Album)