apache / cordova-plugin-media

Apache Cordova Media Plugin
https://cordova.apache.org/
Apache License 2.0
387 stars 765 forks source link

multiple sounds at once glitches out #264

Open koraysels opened 4 years ago

koraysels commented 4 years ago

Bug Report

when you try to play more than one audio file at a time it starts to behave very weird.

Problem

I am making a music sequencer with small audio files wich are controlled by a timeline. If I use web audio API it works but with the media plugin it gives all kinds of weird results. It almost always plays 5 files at the same time and need to transition seamless to the next five audio files

What is expected to happen?

gapless looping, and audio polyphony should function properly.. Or at the very least the same performance as when using the Web Audio API

Why not just keep using the Web Audio API

because it stops producing audio when the app goes into the background and then comes back.. the audio stops...

Information

Command or Code

Environment, Platform, Device

iOS, latest cordova, also latest capacitor (i tested both with this plugin)

Checklist

d9media commented 4 years ago

Hey koraysels, hope you don't mind me asking but I am having trouble getting started with Capacitor and ionic and was wondering if you were using React or Angular in your project? Can*t seem to get it too work at all.