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

Introduce Audio PanningQuality preference #5454

Merged
merged 1 commit into from Jun 10, 2022
Merged

Introduce Audio PanningQuality preference #5454

merged 1 commit into from Jun 10, 2022

Conversation

takahirox
Copy link
Contributor

@takahirox takahirox commented May 23, 2022

Fixes #5278

WebAudio and Three.js uses HRTF panning model for Panner audios by default. But HRTF is said to be better quality but much more costly than another pannind model equalpower. Some users, especially low-end or mobile device users, may think they want to set equalpower panning model for better performance by sacrificing the audio panning quality.

This PR introduces Audio PanningQuality preference. The high quality corresponds to HRTF while the low quality corresponds to equalpower.

Additional Context

  • I didn't change the default model HRTF so far. We may think we want to set equalpower (on mobile devices) by default. But I want to think of the appropriate default value after testing across the devices.
  • (For me) the quality difference is obvious. So currently I don't think to force the value and I hope we can keep in the preferences even after we decide the default value because the preferred value may depend on users.
  • Some of us may think we can integrate the "Accessibility Disable audio left/right panning" and "Audio Panning Quality" preferences, like into "Audio Panning Quality High/Low/None"

src/update-audio-settings.js Outdated Show resolved Hide resolved
src/update-audio-settings.js Outdated Show resolved Hide resolved
src/systems/sound-effects-system.js Outdated Show resolved Hide resolved
@takahirox
Copy link
Contributor Author

Thanks for reviewing. Your comments make sense to me. Updated, thanks.

WebAudio and Three.js uses HRTF panning model for Panner audios
by default. But HRTF is said to be better quality but much more
costly than another pannind model equalpower. Some users,
especially low-end or mobile device users, may think they want
to set equalpower panning model for better performance by
sacrificing the audio panning quality.

This commit introduces Audio PanningQuality preference. The high
quality corresponds to HRTF while the low quality corresponds to
equalpower.
@takahirox
Copy link
Contributor Author

@johnshaughnessy Would you mind if reviewing again to check if the updates look ok?

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

Successfully merging this pull request may close these issues.

Consider to use equalpower panning model
2 participants