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. ItemizedOverlay & database items: When do I update the OverlayItem list?

The MapView does provide a way of getting the lat/lng bounds of the
area of the map being displayed. Maybe it's just me, but it seems
fairly obvious.

 int getLatitudeSpan()
          The current latitude span (from the top edge to the bottom
edge of the map) in decimal degrees multiplied by one million.
 int getLongitudeSpan()
          The current longitude span (from the left edge to the right
edge of the map) in decimal degrees multiplied by one million.
 GeoPoint getMapCenter()
          Returns the current center-point position of the map, as a
GeoPoint (latitude and longitude).

-- 

2. Importing java apps into the Android

Are there any guidelines anywhere on how to import/compile and deploy
existing Java (standard
edition - 1.5+ ) apps into the Android platform? Or would generating a
project from scratch and
importing the classes incrementally into the project from the existing
project the best way?

Thanks again

-- 

3. Droid X Hands-on Review! | Droid X 鈥?Blog dedicated to Droid X News and Accessories!

4. nexus1

5. Update 2 --- Tentang AHA

6. And I was wondering what to do with my G1 now that I have an N1...

7. Droid X Hands-on Review! | Droid X 鈥? Blog dedicated to Droid X News and Accessories!