Open gtk2k opened 5 years ago
Yes, I can confirm that when setting the AmbisonicOrder to a higher value than 1, left and right seem to swap. I suppose this is not intended behavior?
From what I can tell, this appears to have happened because the Omnitone code base was ported from a version originally written for a C++-based game engine, wherein the coordinate system is left-handed. Resonance/Omnitone compute audio in the right-handed coordinate system, so for that game engine the rotations had to be flipped to match the World. But WebAudio is right-handed, so that conversion isn't necessary.
Since this repo hasn't been updated in several years, I forked the two projects and fixed the issue here: https://github.com/capnmidnight/resonance-audio-web-sdk
@capnmidnight Looks like that link is 404ing now. What change did you make to fix it?
When I create and run "treasure-hunt.n.html" that modified the Tresure-Hunt sample to load the js file of src (direct_src) directly, L and R will sound reversely Yes. why? repository:forked