diff options
author | Glenn Kasten <gkasten@google.com> | 2012-09-24 11:27:18 -0700 |
---|---|---|
committer | Glenn Kasten <gkasten@google.com> | 2012-09-25 17:13:18 -0700 |
commit | cc0f1cfb69ce8b8985fc2c0984847a06a13ad22d (patch) | |
tree | f3522fd1ad371d1e592c8c8cfd8d0ce1d98f80c2 /include/media/IAudioFlinger.h | |
parent | d9aa7b4db46bea5966401f9fcfbecb3269ec55c7 (diff) | |
download | frameworks_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/media/IAudioFlinger.h')
-rw-r--r-- | include/media/IAudioFlinger.h | 7 |
1 files changed, 7 insertions, 0 deletions
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; + }; |