4 ms·
I could be wrong, but based on the README this looks like it just sets speaker volume based on position - which is neat, but is not quite positional audio.
by ryukafalz 6y ago
I could be wrong, but based on the README this looks like it just sets speaker volume based on position - which is neat, but is not quite positional audio.
- jka 6y agoI wondered about that too, and found https://github.com/capnmidnight/Calla/commit/abc851b49bd180108826c527fc8968956c576e6d https://github.com/capnmidnight/Calla/commit/abc851b49bd1801... before commenting which seemed to indicate that there's at least stereo positioning. It's possible I'm mistaken though.
- ryukafalz 6y agoOh interesting, it looks like you're right! They do appear to be using a StereoPannerNode rather than the full 3D PannerNode[0], but that is more than just speaker attenuation. [0] https://developer.mozilla.org/en-US/docs/Web/API/Web_Audio_API/Web_audio_spatialization_basics https://developer.mozilla.org/en-US/docs/Web/API/Web_Audio_A...
- moron4hire 6y agoThat's an old commit. It's had spatialized audio for the last month, at least. I'm actually going to put a feature back in to let you select the audio "spatialization" model, because some folks have had trouble with PannerNode not working right. I used to have a selection between volume scaling, StereoPannerNode, and PannerNode. Been a little too busy at the day job to do it lately.