summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2012-09-24 11:27:18 -0700
committerGlenn Kasten <gkasten@google.com>2012-09-25 17:13:18 -0700
commitcc0f1cfb69ce8b8985fc2c0984847a06a13ad22d (patch)
treef3522fd1ad371d1e592c8c8cfd8d0ce1d98f80c2 /include
parentd9aa7b4db46bea5966401f9fcfbecb3269ec55c7 (diff)
downloadframeworks_av-cc0f1cfb69ce8b8985fc2c0984847a06a13ad22d.zip
frameworks_av-cc0f1cfb69ce8b8985fc2c0984847a06a13ad22d.tar.gz
frameworks_av-cc0f1cfb69ce8b8985fc2c0984847a06a13ad22d.tar.bz2
Implement android.media.AudioManager.getProperty()
Bug: 6635041 Change-Id: I3386a4a6c226bc4eceaf65556119e4fb15f73224
Diffstat (limited to 'include')
-rw-r--r--include/media/AudioSystem.h4
-rw-r--r--include/media/IAudioFlinger.h7
2 files changed, 11 insertions, 0 deletions
diff --git a/include/media/AudioSystem.h b/include/media/AudioSystem.h
index 932482b..da4645a 100644
--- a/include/media/AudioSystem.h
+++ b/include/media/AudioSystem.h
@@ -234,6 +234,10 @@ public:
static const sp<IAudioPolicyService>& get_audio_policy_service();
+ // helpers for android.media.AudioManager.getProperty(), see description there for meaning
+ static int32_t getPrimaryOutputSamplingRate();
+ static int32_t getPrimaryOutputFrameCount();
+
// ----------------------------------------------------------------------------
private:
diff --git a/include/media/IAudioFlinger.h b/include/media/IAudioFlinger.h
index bdd0142..5170a87 100644
--- a/include/media/IAudioFlinger.h
+++ b/include/media/IAudioFlinger.h
@@ -187,6 +187,13 @@ public:
audio_io_handle_t dstOutput) = 0;
virtual audio_module_handle_t loadHwModule(const char *name) = 0;
+
+ // helpers for android.media.AudioManager.getProperty(), see description there for meaning
+ // FIXME move these APIs to AudioPolicy to permit a more accurate implementation
+ // that looks on primary device for a stream with fast flag, primary flag, or first one.
+ virtual int32_t getPrimaryOutputSamplingRate() = 0;
+ virtual int32_t getPrimaryOutputFrameCount() = 0;
+
};