Skip to content

Commit

Permalink
Remove toast error in maybeNormalizeVolume
Browse files Browse the repository at this point in the history
  • Loading branch information
vfsfitvnm committed Nov 4, 2022
1 parent feceffe commit 7560121
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ import it.vfsfitvnm.vimusic.utils.resumePlaybackWhenDeviceConnectedKey
import it.vfsfitvnm.vimusic.utils.shouldBePlaying
import it.vfsfitvnm.vimusic.utils.skipSilenceKey
import it.vfsfitvnm.vimusic.utils.timer
import it.vfsfitvnm.vimusic.utils.toast
import it.vfsfitvnm.vimusic.utils.trackLoopEnabledKey
import it.vfsfitvnm.vimusic.utils.volumeNormalizationKey
import kotlin.math.roundToInt
Expand Down Expand Up @@ -481,9 +480,7 @@ class PlayerService : InvincibleService(), Player.Listener, PlaybackStatsListene
try {
loudnessEnhancer?.setTargetGain(-((loudnessDb ?: 0f) * 100).toInt() + 500)
loudnessEnhancer?.enabled = true
} catch (_: Exception) {
toast("Couldn't normalize volume!")
}
} catch (_: Exception) { }
}
}
}
Expand Down

0 comments on commit 7560121

Please sign in to comment.