react-native-sound icon indicating copy to clipboard operation
react-native-sound copied to clipboard

Android does not play multiple sounds simultaneously

Open alican-k opened this issue 8 years ago • 2 comments

Hi there, there is an explanation in the readme file like this: You can play multiple sound files at the same time. Under the hood, this module uses AVAudioSessionCategoryAmbient to mix sounds on iOS.

I am creating two different Sound instances and call play method for both of them. This works with ios but not on android.

Does this feature work only for ios or am I missing something?

alican-k avatar Jan 15 '18 17:01 alican-k

It works for me on Android.

anh2111htd avatar Jan 20 '18 13:01 anh2111htd

Playing 2 audios working on Android side for sure. But the problem is that I am gonna load 6 files at the beginning 2 files have medium size around 10MB and others have size less than 1000KB. But I have to play the 2 audios at the same time big file in the background and one small file in the foreground. after that, we have to continue to play other files.

I am trying to load 3 audio files at the beginning but it's not doing it stable. are there any solutions for this?

iOS part is working perfect.

batmanhit avatar Jan 26 '18 14:01 batmanhit