Skip to content

Commit

Permalink
[FIX] Take sound manager volume into account when updating volume of …
Browse files Browse the repository at this point in the history
…3D sources when Web Audio API is not supported
  • Loading branch information
vkalpias committed May 16, 2016
1 parent 20c74e9 commit 5f6e046
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/sound/instance3d.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,8 @@ pc.extend(pc, function () {
var factor = fallOff(lpos, this._position, this.refDistance, this.maxDistance, this.rollOffFactor, this.distanceModel);

var v = this.volume;
this.source.volume = v * factor;

this.source.volume = v * factor * this._manager.volume;
}
}
});
Expand Down

0 comments on commit 5f6e046

Please sign in to comment.