Thanks Kostya, Streaming seems to be a great solution. And it is very interesting because this way I can mix sounds... Let's do this :)
Rgds, Alex On 29 déc, 21:23, Kostya Vasilyev <kmans...@gmail.com> wrote: > To elaborate a bit: > > http://developer.android.com/reference/android/media/AudioTrack.html > > AudioTrack supports "streaming" mode of operation, where data can be fed > into it on the fly. > > You'd still need to do some sort of scheduled periodic loop, for feeding > data to AudioTrack in chunks, but this way can deal with much larger > jitter, which would be reasonable at application level. > > At some point, you'd need to queue the metronome click, presumably from > an audio file packed within the application. > > This should help with that: > > http://mindtherobot.com/blog/580/android-audio-play-a-wav-file-on-an-... > > -- Kostya > > 29.12.2010 22:40, Frank Weiss пишет: > > > I'd look into Kostya's suggestion. Ideally, you only need the click > > sample and you can program the audio player to play the sample at > > precise intervals. > > Trying to do precise timing with SDK programming is just frought with > > pitfalls, AFAIK. > > -- > > You received this message because you are subscribed to the Google > > Groups "Android Developers" group. > > To post to this group, send email to android-developers@googlegroups.com > > To unsubscribe from this group, send email to > > android-developers+unsubscr...@googlegroups.com > > For more options, visit this group at > >http://groups.google.com/group/android-developers?hl=en > > -- > Kostya Vasilyev -- WiFi Manager + pretty widget > --http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en