How accurate is the "looping" setting on the MediaPlayer? Is it
possible to synthesize the click track and then send it to a media
player and set it to loop?

I'm not sure how accurate that would be, perhaps someone else could
offer some insight?

kris

On Wed, Dec 29, 2010 at 3:23 PM, Kostya Vasilyev <[email protected]> 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-audiotrack/
>
> -- 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 [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-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 [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-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" 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-developers?hl=en

Reply via email to