Skip to content

Conversation

@Mugen87
Copy link
Collaborator

@Mugen87 Mugen87 commented Jun 8, 2018

The API of PositionalAudio only supports omnidirectional spatial sounds. If users want to create a directional audio sources via coneInnerAngle or coneOuterAngle panner properties, it's important that the orientation of the audio is correct. This is something that three.js can easily ensure in PositionalAudio.updateMatrixWorld().

see https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/setOrientation

@mrdoob mrdoob added this to the r94 milestone Jun 17, 2018
@mrdoob mrdoob changed the title PositionalSound: Added orientation PositionalAudio: Added orientation Jun 17, 2018
@mrdoob
Copy link
Owner

mrdoob commented Jun 17, 2018

A example would be great too!

@Mugen87
Copy link
Collaborator Author

Mugen87 commented Jun 17, 2018

Okay, done 😊

@mrdoob mrdoob merged commit f13c5d7 into mrdoob:dev Jun 18, 2018
@mrdoob
Copy link
Owner

mrdoob commented Jun 18, 2018

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants