Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Audio stuttering/popping with Three.js and First Person camera #37

Open
0xpolarzero opened this issue May 3, 2022 · 0 comments
Open

Comments

@0xpolarzero
Copy link

Hello,

I'm not sure about the state of this project, but I wanna share some issue I'm having with the library, hoping I could get some more experienced insight, for someone who knows better, or who had this kind of issue already.

I've been trying to use 3D positional audio with this library, after trying with Omnitone and JSAmbisonics as well, and I always get the same issue : when moving the camera, above a certain speed, the audio starts stuttering / popping. With this SDK, it's really crackling a lot, especially when getting closer to the object which is attached some audio sample. I reduced the character speed, and the camera rotation speed, but it's still very annoying.

Here are the repo (https://github.com/polar0/metaverse) and the demo (https://polar0.github.io/metaverse/) if you want to hear. You just need to move for a bit and you will notice it. It did not find anything that could help me across the few other threads of people having the same kind of issue.

In the repo, you will find the 'src/World/audio' path, in which there is 'main.js' initiating the main audio functions, and 'positioned.js' with the problematic sounds spatializing. There is also a 'resonance-audio.js' file, but it's not relevant, I just modified it a bit to be able to access the Omnitone renderer. But the issue was already there before.

I hope we can find some way to go through this bug. Thank you anyway if you took the time to read me, and/or to go through the code.

polarzero

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

No branches or pull requests

1 participant