summaryrefslogtreecommitdiffstats
path: root/media/libmedia/AudioRecord.cpp
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2014-07-03 12:23:29 -0700
committerGlenn Kasten <gkasten@google.com>2014-07-03 16:28:41 -0700
commit7df8c0b799d8f52d6386e03313286dbd7d5cdc7c (patch)
treee87404b99042b2c21ffcc0c34ac397ae14b4c2d4 /media/libmedia/AudioRecord.cpp
parent7c6f87856c0880ee39c2107a0fc3c9b41f8c195c (diff)
downloadframeworks_av-7df8c0b799d8f52d6386e03313286dbd7d5cdc7c.zip
frameworks_av-7df8c0b799d8f52d6386e03313286dbd7d5cdc7c.tar.gz
frameworks_av-7df8c0b799d8f52d6386e03313286dbd7d5cdc7c.tar.bz2
IAudioFlinger::openRecord now suggests notificationFrames
Change-Id: I08885cc381d03c522a23289e74f0e1ed46563863
Diffstat (limited to 'media/libmedia/AudioRecord.cpp')
-rw-r--r--media/libmedia/AudioRecord.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/media/libmedia/AudioRecord.cpp b/media/libmedia/AudioRecord.cpp
index f865d38..3ee5809 100644
--- a/media/libmedia/AudioRecord.cpp
+++ b/media/libmedia/AudioRecord.cpp
@@ -495,6 +495,10 @@ status_t AudioRecord::openRecord_l(size_t epoch)
size_t temp = frameCount; // temp may be replaced by a revised value of frameCount,
// but we will still need the original value also
int originalSessionId = mSessionId;
+
+ // The notification frame count is the period between callbacks, as suggested by the server.
+ size_t notificationFrames;
+
sp<IMemory> iMem; // for cblk
sp<IMemory> bufferMem;
sp<IAudioRecord> record = audioFlinger->openRecord(input,
@@ -504,6 +508,7 @@ status_t AudioRecord::openRecord_l(size_t epoch)
&trackFlags,
tid,
&mSessionId,
+ &notificationFrames,
iMem,
bufferMem,
&status);