diff options
author | Chia-chi Yeh <chiachi@android.com> | 2010-06-22 17:20:44 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2010-06-22 17:20:44 -0700 |
commit | 41b2d090b23889c56bf0a889a8c9c2fb934015e8 (patch) | |
tree | 43fab4c19b15672a3234801c5c708694ccad0cbf /include | |
parent | 58ae9c530247668f8af36e30d228c716c226b3d4 (diff) | |
parent | 15304d601cbf83be6519ca53e1a26b97d50d0192 (diff) | |
download | frameworks_av-41b2d090b23889c56bf0a889a8c9c2fb934015e8.zip frameworks_av-41b2d090b23889c56bf0a889a8c9c2fb934015e8.tar.gz frameworks_av-41b2d090b23889c56bf0a889a8c9c2fb934015e8.tar.bz2 |
Merge "media: add AudioRecord::getMinFrameCount()." into gingerbread
Diffstat (limited to 'include')
-rw-r--r-- | include/media/AudioRecord.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/media/AudioRecord.h b/include/media/AudioRecord.h index d956882..38e3d44 100644 --- a/include/media/AudioRecord.h +++ b/include/media/AudioRecord.h @@ -100,6 +100,19 @@ public: typedef void (*callback_t)(int event, void* user, void *info); + /* Returns the minimum frame count required for the successful creation of + * an AudioRecord object. + * Returned status (from utils/Errors.h) can be: + * - NO_ERROR: successful operation + * - NO_INIT: audio server or audio hardware not initialized + * - BAD_VALUE: unsupported configuration + */ + + static status_t getMinFrameCount(int* frameCount, + uint32_t sampleRate, + int format, + int channelCount); + /* Constructs an uninitialized AudioRecord. No connection with * AudioFlinger takes place. */ |