AudioRecord can't get any notification when record/marker position updated

by Dave Sparks » Fri, 24 Apr 2009 01:10:51 GMT


Sponsored Links
 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.



--~--~---------~--~----~------------~-------~--~----~



AudioRecord can't get any notification when record/marker position updated

by Steven_T » Fri, 24 Apr 2009 09:48:27 GMT


 hi Dave Sparks:
   I have changed 50 frames to 400 frmaes, it doesn't work.
   then I set bufferSizeInBytes to 1000000 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 give me sample?
   thanks






--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


AudioRecord can't get any notification when record/marker position updated

by Dave Sparks » Sat, 25 Apr 2009 04:45:13 GMT


 id you enable audio input in the emulator?

On Apr 23, 6:48pm, Steven_T <gwb...@126.com> wrote:
--~--~---------~--~----~------------~-------~--~----~



AudioRecord can't get any notification when record/marker position updated

by Steven_T » Sat, 25 Apr 2009 09:04:37 GMT


 i Dave Sparks:
thank you for reply!

I didn't disable audio input in avd
what you means is use option "-audio <backend>" to set an audio input

I had used the next code test audio input
//
====================================================================
Intent intent = new Intent
(MediaStore.Audio.Media.RECORD_SOUND_ACTION);
startActivityForResult(intent, ACTIVITY_RECORD_SOUND);
/
=====================================================================
it can recording and saved audio as a file named "recording47845.3gpp"
in sdcard

the next is logcat out put:
===================================================================================
tag: AudioHardware
Message: AudioStreamInGeneric::read(0x40715b40, 320) from fd 7

tag:AudioFlinger
Message: AudioRecordThread: buffer overflow

tag: InputMangerServic
Message: Starting input on non-focused client
com.android.internal.view.iinputmethodclient$stub$pr...@4360c470
(uid=100118 pid=764)
====================================================================================

Please help me, thanks!



On Apr 25, 4:44am, Dave Sparks <davidspa...@android.com> wrote:
--~--~---------~--~----~------------~-------~--~----~



AudioRecord can't get any notification when record/marker position updated

by Steven_T » Sat, 25 Apr 2009 09:04:41 GMT


 i Dave Sparks:
thank you for reply!

I didn't disable audio input in avd
what you means is use option "-audio <backend>" to set an audio input

I had used the next code test audio input
//
====================================================================
Intent intent = new Intent
(MediaStore.Audio.Media.RECORD_SOUND_ACTION);
startActivityForResult(intent, ACTIVITY_RECORD_SOUND);
/
=====================================================================
it can recording and saved audio as a file named "recording47845.3gpp"
in sdcard

the next is logcat out put:
===================================================================================
tag: AudioHardware
Message: AudioStreamInGeneric::read(0x40715b40, 320) from fd 7

tag:AudioFlinger
Message: AudioRecordThread: buffer overflow

tag: InputMangerServic
Message: Starting input on non-focused client
com.android.internal.view.iinputmethodclient$stub$pr...@4360c470
(uid=100118 pid=764)
====================================================================================

Please help me, thanks!



On Apr 25, 4:44am, Dave Sparks <davidspa...@android.com> wrote:
--~--~---------~--~----~------------~-------~--~----~



AudioRecord can't get any notification when record/marker position updated

by Dave Sparks » Tue, 28 Apr 2009 05:38:41 GMT


 K, 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:04pm, Steven_T <gwb...@126.com> wrote:
--~--~---------~--~----~------------~-------~--~----~



AudioRecord can't get any notification when record/marker position updated

by Steven_T » Tue, 28 Apr 2009 15:34:02 GMT


 hanks it works

On Apr 28, 5:38am, Dave Sparks <davidspa...@android.com> wrote:
--~--~---------~--~----~------------~-------~--~----~



AudioRecord can't get any notification when record/marker position updated

by Steven_T » Tue, 28 Apr 2009 15:34:14 GMT


 hanks it works

On Apr 28, 5:38am, Dave Sparks <davidspa...@android.com> wrote:
--~--~---------~--~----~------------~-------~--~----~



AudioRecord can't get any notification when record/marker position updated

by Thomson » Thu, 30 Apr 2009 02:05:57 GMT


 ello 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:34pm, Steven_T <gwb...@126.com> wrote:

--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. View.getLocationInWindow() only returns Y (and sometimes not even X)

No, layout does NOT happen in onCreate(), it happens later.







>> > 

2. Thx to boss lesjaw

Sudah membagi2 ilmu nya ke kita2 

Sol 

glass supply, bb service n supply
YM jchen_success GT cienhua
081973412628
cienhua.blogspot.com

-- 
--------------
"Indonesian Android Community [id-android]" 

3. Emulator on Ubuntu problem running after first time starting emulator

4. Background from PreferenceActivity is not applied to sub-PreferenceScreen

5. how to open the new screen

6. View.getLocationInWindow() only returns Y (and sometimes not even X)

7. View.getLocationInWindow() only returns Y (and sometimes not even X)