HElp!!!!!!!!!!!!!!!!!! Is there anyone know how many size of data i need to fill into AudioTrack write()?
Please Help~~~~~~~~ Big Thanks!! 2009/11/9 DuncanLee <aqaqaq...@gmail.com> > Dear All, > > I connect one streaming application voice output to android > AudioTrack in native code layer (C code). > But I can heard voice loop..... > > if i put each frame(160bytes) to AudioTrack write() in each callback, > i will get a bad quality voice from earphone. > if i collect more frame(ex:3200, 6400bytes) to AudioTrack, i can hear > clear voice with these 3200bytes but i can hear voice loop, it loops a > piece of the voice. it looks like buffer empty. > Question 1: > Is there any correct size i should fill into write() in each > EVENT_MORE_DATA callback > > Question 2: > When i play stream data some times, framesAvail in obtainBuffer() > will getting negative number > > Thanks for your BIG BIG help!!!!!!! it's pretty urgent to me~~~ > > BR, > Duncan Lee -- 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