diff options
author | Chia-chi Yeh <chiachi@android.com> | 2010-06-22 08:01:13 +0800 |
---|---|---|
committer | Chia-chi Yeh <chiachi@android.com> | 2010-06-23 08:01:04 +0800 |
commit | 15304d601cbf83be6519ca53e1a26b97d50d0192 (patch) | |
tree | 41885f15dd2e97b841b10e094e8de84ac190c754 /include | |
parent | c7fa90a661dd9f6107af6a1d9e6dcaa1cb9a34e3 (diff) | |
download | frameworks_av-15304d601cbf83be6519ca53e1a26b97d50d0192.zip frameworks_av-15304d601cbf83be6519ca53e1a26b97d50d0192.tar.gz frameworks_av-15304d601cbf83be6519ca53e1a26b97d50d0192.tar.bz2 |
media: add AudioRecord::getMinFrameCount().
Change-Id: I952071ab10aa49aa96b727d157b68470d69fff3d
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. */ |