Reland 7976047 to fix the alsa output scheduling for low latency audio.
commit954927055ce96c94deff0a0f52727d1ed8fd3497
authorxians@chromium.org <xians@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Mon, 14 Nov 2011 09:47:44 +0000 (14 09:47 +0000)
committerxians@chromium.org <xians@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Mon, 14 Nov 2011 09:47:44 +0000 (14 09:47 +0000)
tree3f4dba5f11d3d8d8cfebaeb9755d4ae93a522453
parent42130d3f849d626cbf4f5bbd4e3189ef89cd82c6
Reland 7976047 to fix the alsa output scheduling for low latency audio.
This patch is to allow using 10ms buffersize or above, and it also optimize the WebAudio performance by using 5ms as the minimum interview between two OnMoreData() calls.

Bug=None
Test=media_unittests, manully tests:
WebAudio: http://chromium.googlecode.com/svn/trunk/samples/audio/shiny-drum-machine.html (change audio_util.cc to return 512 as buffersize)
WebRTC: Internal test app
Html5: http://www.youtube.com/watch?v=siOHh0uzcuY
Chromebook: http://www.youtube.com/watch?v=-9AtssRoc2Q&feature=related

Review URL: http://codereview.chromium.org/8465018

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@109852 0039d316-1c4b-4281-b951-d872f2087c98
media/audio/linux/alsa_output.cc