Hi! It all depends on the frequency you set. For 8000 Hz 8 bit PCM, 160 should be good and for 16 bit you should provide the double e.g 320. This is for mono so make sure that you are using the same settings at both ends.
//Stoffe On Nov 10, 11:00 pm, Bytes <toyvenu.t...@gmail.com> wrote: > Hi, > > Why can't you try AudioTrack's write() function ? > > On Nov 9, 6:51 am, DuncanLee <aqaqaq...@gmail.com> wrote: > > > Dear All, > > > I connect onestreamingapplication voice output to androidAudioTrackin > > native code layer (C code). > > But I can heard voice loop..... > > > if i put each frame(160bytes) toAudioTrackwrite() in each callback, > > i will get a bad quality voice from earphone. > > if i collect more frame(ex:3200, 6400bytes) toAudioTrack, 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 streamdatasome 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