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. SIGH ... Android & SOAP

This post is directed to those of you who may have been, are or will be
FORCED to deal with stone-age SOAP w/s and Android.

What has been the best way to consume these 7-layered nightmares?
Is there any native (non 3rd-party) support in Android?
Library recommendations (which to embrace, which to drop-it-like-its-hot,
etc)

Thx,
D.A.

-- 

2. Contact Organization in Emulator different than Phone

Hi:

I am developing using Eclipse and the targeted SDK version is API 7
(Version 2.1).  My phone has Android version 2.1-update1.

When running on the emulator, the contacts have an Organization
section and within that section is Work Company, Title...  When
running on the phone, all contacts (Google and Phone) don't have the
Organization section.  So the app runs on the emulator but not the
real phone.

I am using the API 5 class
ContactsContract.CommonDataKinds.Organization to update Contact
Organization.  Why is the emulator different that the phone?


beeman




-- 

3. PSC (primary scrambling code) of connected cell?

4. Web service access

5. Multiplatform native mobile access for enterprise - anyone interested ?

6. Monkey Testing and automatically generating the events...

7. Cannot stop soundpool loop even after exiting app