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

2009-04-29 Thread Thomson
Hello Steven_T , Can you tell me how you able to fix this issue?. I am also not getting "onMarkerReached" callback. Is there any limitation for "setNotificationMarkerPosition". On Apr 28, 6:34 pm, Steven_T wrote: > thanks it works > > On Apr 28, 5:38 am, Dave Sparks 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 wrote: > > > hi Dave Spark

[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 wrote: > > > hi Dave Spark

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

2009-04-27 Thread Dave Sparks
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 wrote: > hi Dave Sparks: > thank you for reply! > > I didn't disable audio input in avd > wha

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

2009-04-24 Thread Steven_T
hi Dave Sparks: thank you for reply! I didn't disable audio input in avd what you means is use option "-audio " to set an audio input I had used the next code test audio input // Intent intent = new Intent (MediaStore.Audio.Med

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

2009-04-24 Thread Steven_T
hi Dave Sparks: thank you for reply! I didn't disable audio input in avd what you means is use option "-audio " to set an audio input I had used the next code test audio input // Intent intent = new Intent (MediaStore.Audio.Med

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

2009-04-24 Thread Dave Sparks
Did you enable audio input in the emulator? On Apr 23, 6:48 pm, Steven_T 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

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

2009-04-23 Thread Steven_T
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 this program pid throwed error, Can you gi

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

2009-04-23 Thread Dave Sparks
I suspect the problem is the interval you chose: 50 frames @ 8KHz is 6.25 msecs. Your app is not going to be able to handle a callback every 6.25 msecs. Try something more reasonable like 50 msecs (400 frames) and see if that works. On Apr 23, 1:56 am, Steven_T wrote: > hello everyone, > I would