OSDN Git Service

AudioFlinger: Make StandbyTime configurable.
authorJohn Grossman <johngro@google.com>
Mon, 5 Dec 2011 22:35:26 +0000 (14:35 -0800)
committerJohn Grossman <johngro@google.com>
Tue, 6 Dec 2011 18:02:29 +0000 (10:02 -0800)
commit725dfe996b2b23fe78b4d92718401406c510a32c
tree1e113bc11154862196367107d4813486f7b8a40c
parent72028075d3d8dc65a8ea28a0364bd1a5b7df5fee
AudioFlinger: Make StandbyTime configurable.

Make the standby time for AudioFlinger configurable using a system
property.  Default AudioFlinger behavior is to go into standby
(allowing the audio outputs to underflow) after there has been nothing
to mix and AudioFlinger has just been pumping out silence for the
configured standby time (which defaulted to 3 seconds).

Now, by setting the "ro.audio.flinger_standbytime_ms" property in
their platform init.rc, platforms can override this default and
control the standby time.  If the property is missing or malformed,
the old default value of 3 seconds will be used instead.

Change-Id: Ic9fa8b5f5bccee493bc72c65e408d3fd8ddd1059
Signed-off-by: John Grossman <johngro@google.com>
services/audioflinger/AudioFlinger.cpp
services/audioflinger/AudioFlinger.h