Skip to content

Commit

Permalink
Fix #1112
Browse files Browse the repository at this point in the history
The upX/Y/Z used the wrong values which basically bugs Spatial audio on at least Chrome. This change fixes that
  • Loading branch information
Joeywp authored Aug 30, 2019
1 parent 808fe34 commit 7296dda
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/plugins/howler.spatial.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,9 @@
self.ctx.listener.forwardX.setTargetAtTime(x, Howler.ctx.currentTime, 0.1);
self.ctx.listener.forwardY.setTargetAtTime(y, Howler.ctx.currentTime, 0.1);
self.ctx.listener.forwardZ.setTargetAtTime(z, Howler.ctx.currentTime, 0.1);
self.ctx.listener.upX.setTargetAtTime(x, Howler.ctx.currentTime, 0.1);
self.ctx.listener.upY.setTargetAtTime(y, Howler.ctx.currentTime, 0.1);
self.ctx.listener.upZ.setTargetAtTime(z, Howler.ctx.currentTime, 0.1);
self.ctx.listener.upX.setTargetAtTime(xUp, Howler.ctx.currentTime, 0.1);
self.ctx.listener.upY.setTargetAtTime(yUp, Howler.ctx.currentTime, 0.1);
self.ctx.listener.upZ.setTargetAtTime(zUp, Howler.ctx.currentTime, 0.1);
} else {
self.ctx.listener.setOrientation(x, y, z, xUp, yUp, zUp);
}
Expand Down

0 comments on commit 7296dda

Please sign in to comment.