summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2015-03-16 20:42:08 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-03-16 20:42:25 +0000
commitfdfce553a8ea19af59ecc95d8395fc50e2b5bf35 (patch)
treee5727b283ba76cd6a31651e6f277e01866d6ded7 /include
parent74bebe401dd966308f29b0c4f42cf6946dc64582 (diff)
parentf5e837e3c7d4b1cee3b18d740bf7d07f4d1ddc1c (diff)
downloadframeworks_av-fdfce553a8ea19af59ecc95d8395fc50e2b5bf35.zip
frameworks_av-fdfce553a8ea19af59ecc95d8395fc50e2b5bf35.tar.gz
frameworks_av-fdfce553a8ea19af59ecc95d8395fc50e2b5bf35.tar.bz2
Merge "Add FIXME to deprecate all APIs that assume a route"
Diffstat (limited to 'include')
-rw-r--r--include/media/AudioRecord.h1
-rw-r--r--include/media/AudioSystem.h4
-rw-r--r--include/media/IAudioFlinger.h1
3 files changed, 6 insertions, 0 deletions
diff --git a/include/media/AudioRecord.h b/include/media/AudioRecord.h
index 59bfc4e..a68a9cb 100644
--- a/include/media/AudioRecord.h
+++ b/include/media/AudioRecord.h
@@ -106,6 +106,7 @@ public:
* - BAD_VALUE: unsupported configuration
* frameCount is guaranteed to be non-zero if status is NO_ERROR,
* and is undefined otherwise.
+ * FIXME This API assumes a route, and so should be deprecated.
*/
static status_t getMinFrameCount(size_t* frameCount,
diff --git a/include/media/AudioSystem.h b/include/media/AudioSystem.h
index 5d57c41..ad5d6ed 100644
--- a/include/media/AudioSystem.h
+++ b/include/media/AudioSystem.h
@@ -98,10 +98,13 @@ public:
// Returned samplingRate and frameCount output values are guaranteed
// to be non-zero if status == NO_ERROR
+ // FIXME This API assumes a route, and so should be deprecated.
static status_t getOutputSamplingRate(uint32_t* samplingRate,
audio_stream_type_t stream);
+ // FIXME This API assumes a route, and so should be deprecated.
static status_t getOutputFrameCount(size_t* frameCount,
audio_stream_type_t stream);
+ // FIXME This API assumes a route, and so should be deprecated.
static status_t getOutputLatency(uint32_t* latency,
audio_stream_type_t stream);
static status_t getSamplingRate(audio_io_handle_t output,
@@ -116,6 +119,7 @@ public:
uint32_t* latency);
// return status NO_ERROR implies *buffSize > 0
+ // FIXME This API assumes a route, and so should deprecated.
static status_t getInputBufferSize(uint32_t sampleRate, audio_format_t format,
audio_channel_mask_t channelMask, size_t* buffSize);
diff --git a/include/media/IAudioFlinger.h b/include/media/IAudioFlinger.h
index 397366b..f927a80 100644
--- a/include/media/IAudioFlinger.h
+++ b/include/media/IAudioFlinger.h
@@ -144,6 +144,7 @@ public:
virtual void registerClient(const sp<IAudioFlingerClient>& client) = 0;
// retrieve the audio recording buffer size
+ // FIXME This API assumes a route, and so should be deprecated.
virtual size_t getInputBufferSize(uint32_t sampleRate, audio_format_t format,
audio_channel_mask_t channelMask) const = 0;