Limit OnData() callbacks to every 5ms for mac audio input.

OSX doesn't like the audio data being retimed and we apparently can
not have Flash use a larger buffer size...  So this hack ensures each
OnData() call has time to deliver audio data to the renderer without
it being smashed by the next call.  5ms was chosen since we use the
same value for a similar hack in AlsaPcmOutputStream.

This is not ideal and instead Pepper input clients should be using at
least a 4k buffer on OSX until switched to the low latency pipeline.

There's no guarantee that the audio input stream won't drop out at a
much later time, but in local testing it's much greater than the 1.5
minutes to dropout we have now.

BUG=157613,168859
TEST=audio input doesn't drop out. longevity testing ongoing.


Review URL: https://chromiumcodereview.appspot.com/12062002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@178517 0039d316-1c4b-4281-b951-d872f2087c98
1 file changed