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

Use SoundPool API to play sound effects #1791

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

svillar
Copy link
Member

@svillar svillar commented Feb 24, 2025

Much better than MediaPlayer for playing short clips with low latency. Unfortunately not working well in Meta devices so we have to keep the old implementation around

Instead of storing the audio files assets we will store them now
as raw resources. This will help us moving towards implementing the
audio media player to SoundPool.

We'd still have to keep the current implementation for Meta devices
that do not deal well with SoundPool.
SoundPool provides low-latency playback for Android applications. It's
better than MediaPlayer for playing very short clips of audio, like the
ones used for sound effects like clicking, typing, etc.

Unfortunately Meta devices do not get along well with this API forcing
us to keep using MediaPlayer for the oculusvr flavor.
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.

1 participant