Thursday, May 3, 2012

[android-developers] Sound problems when trying to play same sound very fast

Hi there,

I am developing a game that among other things uses one gear wheel.
When the wheel rotate, every 15 deegres, it should made a click sound.
So I am using the SoundPool.play for making a tiny click.wav to sound
at those points.

It works fine at slow speed, but when the gear goes faster, it fails.
At some speeds it stops to sound sometimes, often it does not sound at
the point it should, and further sounds twice or even three times at
"same" time. At fastest speed it sounds three or four times fast at
the start, and then it does not sound anymore.

I am a begginer in Android development, also I have never had similar
problem. Perhaps I need a different aproach by design, and not just
help with Android's framework.

Thanks a lot in advance.

Best regards,

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate