summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2012-05-31 14:59:29 -0700
committerGlenn Kasten <gkasten@google.com>2012-06-03 14:42:51 -0700
commitbf0d21fb1310e8677caa53b90e8c3aecebc7fc13 (patch)
tree247c7705394820c7cb84899343bf7a9b834bbda6 /services
parent81787e56f8f21407eade5accc50c6da39b8af9b2 (diff)
downloadframeworks_av-bf0d21fb1310e8677caa53b90e8c3aecebc7fc13.zip
frameworks_av-bf0d21fb1310e8677caa53b90e8c3aecebc7fc13.tar.gz
frameworks_av-bf0d21fb1310e8677caa53b90e8c3aecebc7fc13.tar.bz2
Count underruns for normal tracks also
Bug: 6591648 Change-Id: Iff9cabe392bb2ce97062603adb9c9dc7aa4170d5
Diffstat (limited to 'services')
-rw-r--r--services/audioflinger/AudioFlinger.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/services/audioflinger/AudioFlinger.cpp b/services/audioflinger/AudioFlinger.cpp
index 7d6b121..dee67d0 100644
--- a/services/audioflinger/AudioFlinger.cpp
+++ b/services/audioflinger/AudioFlinger.cpp
@@ -3174,6 +3174,7 @@ AudioFlinger::PlaybackThread::mixer_state AudioFlinger::MixerThread::prepareTrac
tracksToRemove->add(track);
}
} else {
+ track->mUnderrunCount++;
// No buffers for this track. Give it a few chances to
// fill a buffer, then remove it from active list.
if (--(track->mRetryCount) <= 0) {
@@ -4367,7 +4368,7 @@ void AudioFlinger::PlaybackThread::Track::destroy()
/*static*/ void AudioFlinger::PlaybackThread::Track::appendDumpHeader(String8& result)
{
result.append(" Name Client Type Fmt Chn mask Session mFrCnt fCount S M F SRate L dB R dB "
- " Server User Main buf Aux Buf Flags FastUnder\n");
+ " Server User Main buf Aux Buf Flags Underruns\n");
}
void AudioFlinger::PlaybackThread::Track::dump(char* buffer, size_t size)