This commit is contained in:
Adam 2026-05-06 13:51:21 +02:00 committed by GitHub
commit cf42351f0c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 17 additions and 2 deletions

View file

@ -303,7 +303,9 @@ export default class LocalAudioPlayer extends EventEmitter {
setVolume(volume) {
if (!this.player) return
this.player.volume = volume
const useLogarithmicVolume = this.ctx.$store.getters['user/getUserSetting']('useLogarithmicVolume')
// Apply quadratic curve for more natural volume perception if enabled
this.player.volume = useLogarithmicVolume ? volume * volume : volume
}
// Utils