[android-developers] AudioTrack cutting audio short.
Hi, I am trying to play a 0.1s tone using audio track. I have done
this succesfully in stream mode by calling play() then writing the
array of short containing the data. However when I use STATIC mode and
also in stream mode if I write the data before i call play() only
about 0.06s of the audio is played. I have tried changing the buffer
size but this has not effect.
My understanding is that I have to write the data before I call play
for static mode to work. Does anyone know what could be going wrong
here?
Thanks
--
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