How can I do spatial sounds? #2703
Unanswered
thefakeplace
asked this question in
Q&A
Replies: 1 comment 1 reply
-
@thefakeplace Good question! We don't have anything built in for spatial audio yet, but this would be a great feature! Looks like we should be able to implement something using a panner node in the web audio api As a workaround you may need to create new type based off private _createNewBufferSource() {
this._instance = this._audioContext.createBufferSource();
this._instance.buffer = this._src;
this._instance.loop = this.loop;
this._instance.playbackRate.value = this._playbackRate;
this._instance.connect(this._volumeNode);
this._volumeNode.connect(this._audioContext.destination);
} I'll have some time later to play around with this, but should be possible! |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'd like to:
Is this possible in Excalibur today?
Beta Was this translation helpful? Give feedback.
All reactions