Hi Dave, thanks for the clarification. I am too having random delays
with MediaPlayer, when trying to play two audio samples, but one after
the other.

What is the best approach in my case? I want to randomise the audio
from two groups, each containing 10 audio clips.

At present, I've created several instances of MediaPlayer which are
randomically chosen and consequentely played after a specific trigger.

Since they *must* be played one after the other, I've kept them on the
main app thread (there's no problem if execution blocks while they
play).

I am aware that using AudioTrack would do the job better, but won't it
be a while before regular users can run that on their devices?

Cheers for any input,

Cass

On Apr 30, 3:47 pm, Dave Sparks <[email protected]> wrote:
> There is no way to start two audio tracks simultaneously in the
> current API. What you are asking for is an advanced audio API like
> ASIO that has support for synchronizing multiple audio tracks. We'll
> probably add something like that in the future, but there are higher
> priorities at the moment.
>
> On Apr 29, 5:54 am, "[email protected]"
>
> <[email protected]> wrote:
> > Hi,
>
> > I am trying to play a couple of sound samples simultaneously.
> > In the emulator I have the effect, that even though I start the sound
> > playbacks one right after the other, I get varying delays between the
> > single sounds, which seem to be random in length. So sometimes they
> > are played simultaneously, sometimes one after the other. I have the
> > effect no matter if I am using SoundPool or AudioTrack for playback.
>
> > I am wondering if thats just a problem of the emulator (I currently
> > don't have the real thing :-()?
>
> > Any help welcome..
>
> > Peter
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to