mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-05-26 13:21:31 +00:00
Merge f22df2b76c into 47ea6b5092
This commit is contained in:
commit
cf42351f0c
4 changed files with 17 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue