Closed birdofpreyru closed 11 months ago
Add SamplePlayer.builder.setMaxStreams(4); here: https://github.com/birdofpreyru/react-native-audio/blob/d728be4299678570432481211deb3418af9f64f0/android/src/main/java/com/drpogodin/reactnativeaudio/SamplePlayer.java#L18-L20
SamplePlayer.builder.setMaxStreams(4);
Without it, it seems on Android 11 the SoundPool uses 1 stream max, and bumps into errors when playing samples in a quick succession.
Add
SamplePlayer.builder.setMaxStreams(4);
here: https://github.com/birdofpreyru/react-native-audio/blob/d728be4299678570432481211deb3418af9f64f0/android/src/main/java/com/drpogodin/reactnativeaudio/SamplePlayer.java#L18-L20Without it, it seems on Android 11 the SoundPool uses 1 stream max, and bumps into errors when playing samples in a quick succession.