diff options
author | enal@chromium.org <enal@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-07-07 18:17:43 +0000 |
---|---|---|
committer | enal@chromium.org <enal@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-07-07 18:17:43 +0000 |
commit | 8527643cf39257d388fa9bbd04b081c8d8fa0bf1 (patch) | |
tree | e458e96cef5bfb1a495254025399b95a9f521a7f /media/audio/audio_output_controller.h | |
parent | 32877d3008fd89331c36767b90d18de22f209493 (diff) | |
download | chromium_src-8527643cf39257d388fa9bbd04b081c8d8fa0bf1.zip chromium_src-8527643cf39257d388fa9bbd04b081c8d8fa0bf1.tar.gz chromium_src-8527643cf39257d388fa9bbd04b081c8d8fa0bf1.tar.bz2 |
Change audio renderer to communicate with host using low latency codepath.
I.e. now host signals that it is ready to accept new data using sockets,
not IPC messages.
That should reduce audio latency.
Right now we are using high latency code path by default, low latency
would be used only when flag --enable-low-latency-audio is specified.
Changed unit tests to test low latency code path, as it should become
default soon.
http://codereview.chromium.org/7253003
BUG=http://code.google.com/p/chromium/issues/detail?id=87640
TEST=Everything should just work. I changed audio_renderer_impl_unittest.cc to explicitly force low latency code path.
Review URL: http://codereview.chromium.org/7253003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@91727 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/audio/audio_output_controller.h')
-rw-r--r-- | media/audio/audio_output_controller.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/media/audio/audio_output_controller.h b/media/audio/audio_output_controller.h index e5248a6..29fb0a7 100644 --- a/media/audio/audio_output_controller.h +++ b/media/audio/audio_output_controller.h @@ -63,6 +63,10 @@ class AudioOutputController kError, }; + // Value sent by the controller to the renderer in low-latency mode + // indicating that the stream is paused. + static const int kPauseMark; + // An event handler that receives events from the AudioOutputController. The // following methods are called on the audio controller thread. class EventHandler { |