AudioRecord: Overrun user magazines - what do they mean?

I have a simple piece of code that creates an AudioRecord object and then uses it to write to a file. It is pretty standard and seems to work just fine. I am using Samsung GalaxyS Vibrant running Android 2.2.

However, I get these messages in logcat at different intervals:

04-13 14:03:30.754: V/AudioRecord(4831): Overrun user: 820, server: 1040, flowControlFlag 0
04-13 14:03:30.766: V/AudioRecord(4831): Overrun user: 820, server: 1040, flowControlFlag 1

Does anyone know what that means? Am I wrapping an internal sound buffer and losing audio frames? It doesn't sound like a recorded file, but these intermittent messages bother me a bit.

+5
source share
4 answers

, , samsung. , . ,

+2

, ( Samsung, , ), , , AudioRecord.

, Overrun user, AudioRecord .

+6

.

<uses-permission android:name="android.permission.RECORD_AUDIO"></uses-permission>

0

I think, because reading pcm data is too slow, I came across the same question, when I sleep a little between two read operations, this log gets bigger when I set the sleep time longer. Therefore, I think there are two ways to solve this problem: 1. quickly read the read operation 2. Make the buffer larger when you set the last AudioRecorder last pair to 2 * minBufferSize or more. It can allow you to read more data with each read operation. Hope you understand this, sorry for my poor english.

0
source

All Articles