diff options
author | Glenn Kasten <gkasten@google.com> | 2012-03-26 07:16:37 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2012-03-26 07:16:37 -0700 |
commit | b83d38feeeb88a8a2a6219e1fca2480b5a14fb0d (patch) | |
tree | 7e1392f0427d0300d8140ef0a6c18dc32f393831 /include/media | |
parent | 8f7f7ad54c698cb57a2a369cf1ae5b917853917b (diff) | |
parent | a075db4ff9b086ac2885df77bb6da0869293df92 (diff) | |
download | frameworks_av-b83d38feeeb88a8a2a6219e1fca2480b5a14fb0d.zip frameworks_av-b83d38feeeb88a8a2a6219e1fca2480b5a14fb0d.tar.gz frameworks_av-b83d38feeeb88a8a2a6219e1fca2480b5a14fb0d.tar.bz2 |
Merge "IAudioFlinger::createTrack and openRecord flags"
Diffstat (limited to 'include/media')
-rw-r--r-- | include/media/AudioRecord.h | 1 | ||||
-rw-r--r-- | include/media/IAudioFlinger.h | 12 |
2 files changed, 9 insertions, 4 deletions
diff --git a/include/media/AudioRecord.h b/include/media/AudioRecord.h index 7df6668..5bfb65b 100644 --- a/include/media/AudioRecord.h +++ b/include/media/AudioRecord.h @@ -354,7 +354,6 @@ private: audio_format_t format, uint32_t channelMask, int frameCount, - uint32_t flags, audio_io_handle_t input); audio_io_handle_t getInput_l(); status_t restoreRecord_l(audio_track_cblk_t*& cblk); diff --git a/include/media/IAudioFlinger.h b/include/media/IAudioFlinger.h index 0f39cf3..2bae08e 100644 --- a/include/media/IAudioFlinger.h +++ b/include/media/IAudioFlinger.h @@ -43,6 +43,13 @@ class IAudioFlinger : public IInterface public: DECLARE_META_INTERFACE(AudioFlinger); + // or-able bits shared by createTrack and openRecord, but not all combinations make sense + enum { + TRACK_DEFAULT = 0, + TRACK_TIMED = 1, + }; + typedef uint32_t track_flags_t; + /* create an audio track and registers it with AudioFlinger. * return null if the track cannot be created. */ @@ -53,10 +60,9 @@ public: audio_format_t format, uint32_t channelMask, int frameCount, - uint32_t flags, + track_flags_t flags, const sp<IMemory>& sharedBuffer, audio_io_handle_t output, - bool isTimed, int *sessionId, status_t *status) = 0; @@ -67,7 +73,7 @@ public: audio_format_t format, uint32_t channelMask, int frameCount, - uint32_t flags, + track_flags_t flags, int *sessionId, status_t *status) = 0; |