Hi,
The documentation for AudioRecord specifies that the constructor may fail based on what the hardware supports. The format of the data will depend on if the hardware supports it. Since the current android emulator is like a G1 type phone, and phone systems are usually 8000hz, the hardware probably only supports that frequency. On Apr 24, 5:25 am, szabolcs <szabolcs.vr...@gmail.com> wrote: > Steven, > > Thank you for your reply. > > I know AudioRecord works with a sample frequency of 8000Hz. In my > initial post I was asking why this frequency is the ONLY frequency > that works?! > > BTW, there is no exception thrown when the initialization of > AudioRecord fails. I figured you are supposed to check that yourself > by something like: > if(mRecord.getState()==AudioRecord.STATE_INITIALIZED), not a try-catch > block. > > So again: the question is, why does the initialization fail, if I > supply the constructor with AUDIO_SAMPLE_FREQ= 11025 || 22050 || > 44100? > > Thank you, > > -Szabolcs --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---