From 743cef53d884806c8f2c7a1773ea6603c5794e19 Mon Sep 17 00:00:00 2001 From: ThibG Date: Mon, 15 Jun 2020 16:43:30 +0200 Subject: [PATCH] [Glitch] Fix initial audio volume not corresponding to what's displayed Port 3f5fa64211fa03c5106e54f6a91b522eafda6700 to glitch-soc Signed-off-by: Thibaut Girka --- app/javascript/flavours/glitch/features/audio/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/app/javascript/flavours/glitch/features/audio/index.js b/app/javascript/flavours/glitch/features/audio/index.js index 49e91227fa..ba35344929 100644 --- a/app/javascript/flavours/glitch/features/audio/index.js +++ b/app/javascript/flavours/glitch/features/audio/index.js @@ -125,6 +125,7 @@ class Audio extends React.PureComponent { this.wavesurfer.createPeakCache(); this.wavesurfer.load(this.props.src); this.wavesurfer.toggleInteraction(); + this.wavesurfer.setVolume(this.state.volume); this.loaded = true; }