[android-developers] Re: SDK1.5 AudioRecord sample rate problem

2009-04-24 Thread Steven_T
you can try this code: private static final int AUDIO_SAMPLE_FREQ = 8000; private static final int AUDIO_BUFFER_SIZE = 20; private AudioRecord recorder; try { // init recorder recorder = new AudioRecord(MediaRecorder.AudioSource.MIC,

[android-developers] Re: AudioRecord can't get any notification when record/marker position updated

2009-04-24 Thread Steven_T
, Steven_T gwb...@126.com wrote: hi Dave Sparks:    I have changed 50 frames to 400 frmaes, it doesn't work.    then I set bufferSizeInBytes to 100 to init AudioRecord object, and set update period to 400,    it dosn't work too. I had used logcat to watch emulator'log, didn't find

[android-developers] Re: AudioRecord can't get any notification when record/marker position updated

2009-04-24 Thread Steven_T
, Steven_T gwb...@126.com wrote: hi Dave Sparks:    I have changed 50 frames to 400 frmaes, it doesn't work.    then I set bufferSizeInBytes to 100 to init AudioRecord object, and set update period to 400,    it dosn't work too. I had used logcat to watch emulator'log, didn't find

[android-developers] AudioRecord can't get any notification when record/marker position updated

2009-04-23 Thread Steven_T
hello everyone, I would like to use the new AudioRecord class to record in PCM format. Create class and setRecordPositionUpdateListener to it, then start recording, I can't get any notification from system forever,why?(I didn't get any error when running) please help me, thanks. the next is my

[android-developers] AudioRecord can't get any notification when record/marker position updated

2009-04-23 Thread Steven_T
hi all I want use AudioRecord class to record audio in PCM formate. after create class and set setRecordPositionUpdateListener, then start recording. I can't get any notification from system. why? please help me, thanks public class Recorder { private static final int AUDIO_SAMPLE_FREQ =

[android-developers] Re: AudioRecord can't get any notification when record/marker position updated

2009-04-23 Thread Steven_T
frames) and see if that works. On Apr 23, 1:56 am, Steven_T gwb...@126.com wrote: hello everyone, I would like to use the new AudioRecord class to record in PCM format. Create class and setRecordPositionUpdateListener to it, then start recording, I can't get any notification from system