diff options
author | Glenn Kasten <gkasten@google.com> | 2014-02-24 15:16:07 -0800 |
---|---|---|
committer | Glenn Kasten <gkasten@google.com> | 2014-02-24 17:21:41 -0800 |
commit | 5f631515d098c29603cda88f7a7e7580a2d55b57 (patch) | |
tree | 74b2b5ec4b6aeddeffcb6c04c833a3d4030660dd /media/libmedia/AudioRecord.cpp | |
parent | e3247bf8dd4f8fa8dfa3a108260241ae4a967569 (diff) | |
download | frameworks_av-5f631515d098c29603cda88f7a7e7580a2d55b57.zip frameworks_av-5f631515d098c29603cda88f7a7e7580a2d55b57.tar.gz frameworks_av-5f631515d098c29603cda88f7a7e7580a2d55b57.tar.bz2 |
Unify comments and whitespace between AudioTrack and AudioRecord
Change-Id: I5320a6b2d7f7077cb12d7da4f2ca30a940100bf2
Diffstat (limited to 'media/libmedia/AudioRecord.cpp')
-rw-r--r-- | media/libmedia/AudioRecord.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/media/libmedia/AudioRecord.cpp b/media/libmedia/AudioRecord.cpp index bb0d196..bb66b4c 100644 --- a/media/libmedia/AudioRecord.cpp +++ b/media/libmedia/AudioRecord.cpp @@ -175,6 +175,7 @@ status_t AudioRecord::set( return INVALID_OPERATION; } + // handle default values first. if (inputSource == AUDIO_SOURCE_DEFAULT) { inputSource = AUDIO_SOURCE_MIC; } @@ -518,7 +519,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); } |