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.
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 usingreact-native-gesture-handler
withreact-native-reanimated
but had no improvement.Any help please?