diff options
author | Chia-chi Yeh <chiachi@android.com> | 2010-06-16 06:33:13 +0800 |
---|---|---|
committer | Chia-chi Yeh <chiachi@android.com> | 2010-06-21 09:51:18 +0800 |
commit | 33005a932c60a0780fe9b7307d5988df3d9f6c26 (patch) | |
tree | 2519156995c4fabaae1dfdaa091e70b973a41547 /include | |
parent | 1616fa4a567bae928dfd28ebf1ec45cd701f27f1 (diff) | |
download | frameworks_av-33005a932c60a0780fe9b7307d5988df3d9f6c26.zip frameworks_av-33005a932c60a0780fe9b7307d5988df3d9f6c26.tar.gz frameworks_av-33005a932c60a0780fe9b7307d5988df3d9f6c26.tar.bz2 |
media: add AudioTrack::getMinFrameCount().
Change-Id: If15162583d1d16d89f59be0793106afe77417f35
Diffstat (limited to 'include')
-rw-r--r-- | include/media/AudioTrack.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/media/AudioTrack.h b/include/media/AudioTrack.h index c46df1e..ef537f4 100644 --- a/include/media/AudioTrack.h +++ b/include/media/AudioTrack.h @@ -102,6 +102,17 @@ public: typedef void (*callback_t)(int event, void* user, void *info); + /* Returns the minimum frame count required for the successful creation of + * an AudioTrack object. + * Returned status (from utils/Errors.h) can be: + * - NO_ERROR: successful operation + * - NO_INIT: audio server or audio hardware not initialized + */ + + static status_t getMinFrameCount(int* frameCount, + int streamType =-1, + uint32_t sampleRate = 0); + /* Constructs an uninitialized AudioTrack. No connection with * AudioFlinger takes place. */ |