summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2012-07-12 09:07:11 -0700
committerGlenn Kasten <gkasten@google.com>2012-07-12 09:36:34 -0700
commitbf04a5d7f287fc712e0ed91849dc85c90c1e182d (patch)
treef9fd2ffd8df5a02c9c9373f5362da76204e5a676 /include
parent39c54f68804c1ce5c85ec588f3c2c63447a807b4 (diff)
downloadframeworks_av-bf04a5d7f287fc712e0ed91849dc85c90c1e182d.zip
frameworks_av-bf04a5d7f287fc712e0ed91849dc85c90c1e182d.tar.gz
frameworks_av-bf04a5d7f287fc712e0ed91849dc85c90c1e182d.tar.bz2
Simplify AudioRecord::getInputFramesLost()
This also fixes a benign race in reading mActive without a lock. Change-Id: I19e953d4f275e5c266ca1ca3fece7b6c02ad1707
Diffstat (limited to 'include')
-rw-r--r--include/media/AudioSystem.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/media/AudioSystem.h b/include/media/AudioSystem.h
index 66f4b84..61d62b0 100644
--- a/include/media/AudioSystem.h
+++ b/include/media/AudioSystem.h
@@ -126,6 +126,7 @@ public:
// necessary to check returned status before using the returned values.
static status_t getRenderPosition(uint32_t *halFrames, uint32_t *dspFrames, audio_stream_type_t stream = AUDIO_STREAM_DEFAULT);
+ // return the number of input frames lost by HAL implementation, or 0 if the handle is invalid
static unsigned int getInputFramesLost(audio_io_handle_t ioHandle);
static int newAudioSessionId();