summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2012-11-14 15:43:41 -0800
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-11-14 15:43:41 -0800
commit8f1c74943c454fec3f1adf87312c4a4c89829d90 (patch)
tree4e62b8802ffe56074f7e8b676143b9c838262472
parenta9749e3468fda2288dda65d1ef52e0997f6d8897 (diff)
parentf6fd99cc07deb0fa4f3e8fc278836bd90649964f (diff)
downloadframeworks_av-8f1c74943c454fec3f1adf87312c4a4c89829d90.zip
frameworks_av-8f1c74943c454fec3f1adf87312c4a4c89829d90.tar.gz
frameworks_av-8f1c74943c454fec3f1adf87312c4a4c89829d90.tar.bz2
Merge "Remove deprecated AudioSystem methods"
-rw-r--r--include/media/AudioSystem.h6
-rw-r--r--media/libmedia/AudioSystem.cpp10
2 files changed, 0 insertions, 16 deletions
diff --git a/include/media/AudioSystem.h b/include/media/AudioSystem.h
index 2218fad..d64ecd4 100644
--- a/include/media/AudioSystem.h
+++ b/include/media/AudioSystem.h
@@ -107,12 +107,6 @@ public:
audio_stream_type_t stream,
uint32_t* latency);
- // DEPRECATED
- static status_t getOutputSamplingRate(int* samplingRate, int stream = AUDIO_STREAM_DEFAULT);
-
- // DEPRECATED
- static status_t getOutputFrameCount(int* frameCount, int stream = AUDIO_STREAM_DEFAULT);
-
static bool routedToA2dpOutput(audio_stream_type_t streamType);
static status_t getInputBufferSize(uint32_t sampleRate, audio_format_t format,
diff --git a/media/libmedia/AudioSystem.cpp b/media/libmedia/AudioSystem.cpp
index 767c452..488edac 100644
--- a/media/libmedia/AudioSystem.cpp
+++ b/media/libmedia/AudioSystem.cpp
@@ -205,11 +205,6 @@ int AudioSystem::logToLinear(float volume)
return volume ? 100 - int(dBConvertInverse * log(volume) + 0.5) : 0;
}
-// DEPRECATED
-status_t AudioSystem::getOutputSamplingRate(int* samplingRate, int streamType) {
- return getOutputSamplingRate(samplingRate, (audio_stream_type_t)streamType);
-}
-
status_t AudioSystem::getOutputSamplingRate(int* samplingRate, audio_stream_type_t streamType)
{
audio_io_handle_t output;
@@ -252,11 +247,6 @@ status_t AudioSystem::getSamplingRate(audio_io_handle_t output,
return NO_ERROR;
}
-// DEPRECATED
-status_t AudioSystem::getOutputFrameCount(int* frameCount, int streamType) {
- return getOutputFrameCount(frameCount, (audio_stream_type_t)streamType);
-}
-
status_t AudioSystem::getOutputFrameCount(int* frameCount, audio_stream_type_t streamType)
{
audio_io_handle_t output;