FYI, the source code that I linked is a simpler version that is not
service based. I was thinking the service was causing the bug, but it
still exists without being service based.

On May 31, 4:01 pm, Hunter  Peress <hunt...@gmail.com> wrote:
> Hey. I'm running AudioRecord to capture sound. It runs inside a
> service. But, after the initial run after installing the app (in which
> I've never seen this bug occur), the sound goes blank about 20% of the
> time after 0-20 seconds of running. Audio data STILL gets captured
> from the hardware, however, it is completely silent. If you examine
> the console you will see that AudioHardwareQSD enters standby mode,
> or  you can use the volume meter and you will see that it goes dead to
> assist in seeing this bug.
>
> 05-30 11:49:37.639: DEBUG/dalvikvm(697): GC_FOR_MALLOC freed 8417
> objects / 326880 bytes in 62ms
> 05-30 11:49:37.639: INFO/AudioHardwareQSD(59): do input routing device
> 40000
> 05-30 11:49:37.639: INFO/AudioHardwareQSD(59): Routing audio to
> Speakerphone
> 05-30 11:49:37.650: WARN/AudioFlinger(59): RecordThread: buffer
> overflow
> 05-30 11:49:37.780: DEBUG/AudioHardwareQSD(59): Switching audio device
> to
> 05-30 11:49:37.780: DEBUG/AudioHardwareQSD(59): Speakerphone
> 05-30 11:49:37.871: INFO/AudioHardwareQSD(59): AudioHardware PCM
> record is going to standby.
>
> This bug does not occur on any other phone than the nexus. Someone
> told me that AudioHardwareQSD is
> related to the snapdragon audioprocessor for the second microphone.
>
> Quickly view the relevant source in pastebin:http://pastebin.com/3xVEjiLE
>
> The full source is 
> here:http://android.googlecode.com/issues/attachment?aid=55193614575285110...
>
> Which is part this bug:http://code.google.com/p/android/issues/detail?id=8732
>
> Thanks.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to