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

2009-04-28 Thread Steven_T
thanks it works On Apr 28, 5:38 am, Dave Sparks wrote: > OK, so it sounds like audio is being produced by the kernel driver. > > I just looked at your code, and I think you need to call read() once > to pass in your first input buffer. > > On Apr 24, 6:04 pm, Steven_T wr

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

2009-04-28 Thread Steven_T
thanks it works On Apr 28, 5:38 am, Dave Sparks wrote: > OK, so it sounds like audio is being produced by the kernel driver. > > I just looked at your code, and I think you need to call read() once > to pass in your first input buffer. > > On Apr 24, 6:04 pm, Steven_T wr

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

2009-04-24 Thread Steven_T
put on non-focused client com.android.internal.view.iinputmethodclient$stub$pr...@4360c470 (uid=100118 pid=764) Please help me, thanks! On Apr 25, 4:44 am, Dave Sparks wrote: > Did you enable audio input in the emulator? > > On Apr 23, 6:48 

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

2009-04-24 Thread Steven_T
put on non-focused client com.android.internal.view.iinputmethodclient$stub$pr...@4360c470 (uid=100118 pid=764) Please help me, thanks! On Apr 25, 4:44 am, Dave Sparks wrote: > Did you enable audio input in the emulator? > > On Apr 23, 6:48 

[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, AUDIO_SAMPLE_F

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

2009-04-23 Thread Steven_T
ecs (400 > frames) and see if that works. > > On Apr 23, 1:56 am, Steven_T 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

[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] 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 c