summaryrefslogtreecommitdiffstats
path: root/include/media/AudioSystem.h
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2014-02-24 13:42:58 -0800
committerGlenn Kasten <gkasten@google.com>2014-02-25 07:46:35 -0800
commitb42f318d9733f88c7eb9bedfd33b086b8ea5dff5 (patch)
tree5a38a8e40dd8c3ad572a418b2eb7fa08866e0a36 /include/media/AudioSystem.h
parentdc6ac201032d0f6ad0c8149ae2f009ec38693025 (diff)
downloadframeworks_av-b42f318d9733f88c7eb9bedfd33b086b8ea5dff5.zip
frameworks_av-b42f318d9733f88c7eb9bedfd33b086b8ea5dff5.tar.gz
frameworks_av-b42f318d9733f88c7eb9bedfd33b086b8ea5dff5.tar.bz2
Simplify and cleanup error handling in AudioRecord::getMinFrameCount
Change-Id: I8721ecedfb429c4e233453d1e768ddf69ecabbe4
Diffstat (limited to 'include/media/AudioSystem.h')
-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 fd86737..28fdfd4 100644
--- a/include/media/AudioSystem.h
+++ b/include/media/AudioSystem.h
@@ -118,6 +118,7 @@ public:
static bool routedToA2dpOutput(audio_stream_type_t streamType);
+ // return status NO_ERROR implies *buffSize > 0
static status_t getInputBufferSize(uint32_t sampleRate, audio_format_t format,
audio_channel_mask_t channelMask, size_t* buffSize);