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

Slight delay of playing a small sound #172

Open
spyshower opened this issue Aug 12, 2024 · 3 comments
Open

Slight delay of playing a small sound #172

spyshower opened this issue Aug 12, 2024 · 3 comments

Comments

@spyshower
Copy link

First of all this is isn't a bug.

I am trying to play a small sound (tried wav, m4a and aac) for my game in Android when the user clicks a button. There's always a small delay before playing the sound. This is definitely a sound issue because whatever else the button does, it happens immediately, except playing the sound.

I tried the 3 file formats I mentioned, tried loading the sound and resuming it, tried multiple Touchable/Pressable components, and also tried using react-native-gesture-handler with react-native-reanimated but had no improvement.

Any help please?

@fabienbouchez
Copy link

Also interested in the answer!

@spyshower
Copy link
Author

Also interested in the answer!

Fyi, I ended up playing the sound onPressIn instead of onPress

@fabienbouchez
Copy link

Thanks!

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

2 participants