Skip to content
This repository has been archived by the owner on Jan 20, 2023. It is now read-only.

Allow to play multiple sounds simultaneoustly #4

Open
TheDumbfounds opened this issue Jun 3, 2017 · 5 comments
Open

Allow to play multiple sounds simultaneoustly #4

TheDumbfounds opened this issue Jun 3, 2017 · 5 comments

Comments

@TheDumbfounds
Copy link

TheDumbfounds commented Jun 3, 2017

I got everything working properly. What I am trying to do is play some sounds followed by another, without interupting the previous one. If I do something like this:

for (int i = 0; i < 5; i++) {
      int soundIndex = random.nextInt(5) + 1;
      play(soundIndex);
 }

then obviously it gets messed up and they overwrite each other. How can I achieve this effect?

@rxlabz
Copy link
Owner

rxlabz commented Jun 3, 2017

The plugin can't play multiple sounds in same time. It should not be very difficult to implement, but I have not this in my todo list for now. Off course, PR are always welcome :)

@TheDumbfounds
Copy link
Author

I am going to try my best :)

@rxlabz rxlabz changed the title Playing sounds after one another Allow playing multiple sounds is same time Jun 3, 2017
@rxlabz rxlabz changed the title Allow playing multiple sounds is same time Allow to play multiple sounds in same time Jun 3, 2017
@rxlabz rxlabz changed the title Allow to play multiple sounds in same time Allow to play multiple sounds simultaneoustly Jun 3, 2017
@rrousselGit
Copy link

Do you have anything working/in progress, or should I make something myself ? :)

@TheDumbfounds
Copy link
Author

Sorry, I am not working on it anymore :/

@luanpotter
Copy link

I made a fork to allow this, but only for Android (I don't have iDevices to test right now). It's working well for me :)

Just replace audioplayer with audioplayers on your pubspec.yaml, the API is identical.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants