Skip to content

Commit 227a48f

Browse files
committed
Volume slider changes global instead of local volume (player demo)
Fixes goldfire#636
1 parent 7d11f20 commit 227a48f

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

examples/player/player.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -181,11 +181,8 @@ Player.prototype = {
181181
volume: function(val) {
182182
var self = this;
183183

184-
// Get the Howl we want to manipulate.
185-
var sound = self.playlist[self.index].howl;
186-
187-
// Update the volume to the new value.
188-
sound.volume(val);
184+
// Update the global volume (affecting all Howls).
185+
Howler.volume(val);
189186

190187
// Update the display on the slider.
191188
var barWidth = (val * 90) / 100;

0 commit comments

Comments
 (0)