Skip to content

Commit 2a9d090

Browse files
committed
Safari fix for panner.setPosition
1 parent 9b75f3d commit 2a9d090

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/plugins/howler.spatial.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@
313313
sound._panner.positionY.setValueAtTime(y, Howler.ctx.currentTime);
314314
sound._panner.positionZ.setValueAtTime(z, Howler.ctx.currentTime);
315315
} else {
316-
sound._panner.setOrientation(x, y, z);
316+
sound._panner.setPosition(x, y, z);
317317
}
318318
}
319319

0 commit comments

Comments
 (0)