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. Missing setListAdapter() Method?

I am working through the Notepad tutorial and notice that my project
will not compile on account of a missing setListAdapter() method call
in the Notepadv1.java.  In that java file there is a method called
fillData() which make the call to the missing method setListAdapter
(notes).

Can someone tell me where that method should be?  The tutorial appears
to be silent on the issue.

Thanks

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

2. Cupcake (1.5) and Maps

I am having a major issue migrating my map-based application from
Android 1.1 to 1.5.  Ever other android app I have -- the do not use
the maps -- has been upgraded.  Does any have a simple tutorial, tip,
or blog post about getting maps to work with 1.5.

Thanks

Ted

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

3. Creating Spinner in ExpandableList

4. Android video and audio application (x86 and ARM)

5. do you know how to change skin in android project?

6. Getting mock gps data

7. I can't get into developer.android.com site.