summaryrefslogtreecommitdiffstats
path: root/media/libmedia/AudioRecord.cpp
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2014-02-25 21:23:36 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-02-25 21:23:36 +0000
commit7c1b8941bb54e38f2a717e41af0d9565f5977c27 (patch)
tree7c5af10bfbea4a9c10356facdc24a9306693fee9 /media/libmedia/AudioRecord.cpp
parent6c69333431b2fdd995a1c2eb6f01182155f4a691 (diff)
parent5f631515d098c29603cda88f7a7e7580a2d55b57 (diff)
downloadframeworks_av-7c1b8941bb54e38f2a717e41af0d9565f5977c27.zip
frameworks_av-7c1b8941bb54e38f2a717e41af0d9565f5977c27.tar.gz
frameworks_av-7c1b8941bb54e38f2a717e41af0d9565f5977c27.tar.bz2
Merge "Unify comments and whitespace between AudioTrack and AudioRecord"
Diffstat (limited to 'media/libmedia/AudioRecord.cpp')
-rw-r--r--media/libmedia/AudioRecord.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/media/libmedia/AudioRecord.cpp b/media/libmedia/AudioRecord.cpp
index 9c04f17..f2351d5 100644
--- a/media/libmedia/AudioRecord.cpp
+++ b/media/libmedia/AudioRecord.cpp
@@ -167,6 +167,7 @@ status_t AudioRecord::set(
return INVALID_OPERATION;
}
+ // handle default values first.
if (inputSource == AUDIO_SOURCE_DEFAULT) {
inputSource = AUDIO_SOURCE_MIC;
}
@@ -511,7 +512,7 @@ status_t AudioRecord::openRecord_l(size_t epoch)
mCblkMemory = iMem;
audio_track_cblk_t* cblk = static_cast<audio_track_cblk_t*>(iMemPointer);
mCblk = cblk;
- // note that temp is the (possibly revised) value of mFrameCount
+ // note that temp is the (possibly revised) value of frameCount
if (temp < frameCount || (frameCount == 0 && temp == 0)) {
ALOGW("Requested frameCount %u but received frameCount %u", frameCount, temp);
}