mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-25 11:04:00 +00:00
Actually use clamped volume for media
This commit is contained in:
parent
3fa5c05bd1
commit
e588b76203
1 changed files with 1 additions and 1 deletions
|
|
@ -47,7 +47,7 @@ export function close(mediaPlayer) {
|
|||
|
||||
export function setVolume(mediaPlayer, volume) {
|
||||
const realVolume = clamp(volume, 0, 100);
|
||||
mediaPlayer.setVolume(volume);
|
||||
mediaPlayer.setVolume(realVolume);
|
||||
return {
|
||||
type: 'SET_VOLUME',
|
||||
volume: realVolume
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue