diff options
author | The Android Open Source Project <initial-contribution@android.com> | 2008-12-17 18:05:43 -0800 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2008-12-17 18:05:43 -0800 |
commit | 7b5eb023f8d87cca6d830ae6c11c6aadbe02aca8 (patch) | |
tree | d9838a098f868ee2fcffc20627a8c9a33cb23377 /include/media/AudioSystem.h | |
parent | 2729ea9262ca60d93047e984739887cfc89e82eb (diff) | |
download | frameworks_av-7b5eb023f8d87cca6d830ae6c11c6aadbe02aca8.zip frameworks_av-7b5eb023f8d87cca6d830ae6c11c6aadbe02aca8.tar.gz frameworks_av-7b5eb023f8d87cca6d830ae6c11c6aadbe02aca8.tar.bz2 |
Code drop from //branches/cupcake/...@124589
Diffstat (limited to 'include/media/AudioSystem.h')
-rw-r--r-- | include/media/AudioSystem.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/include/media/AudioSystem.h b/include/media/AudioSystem.h index 9fcbea5..77676bf 100644 --- a/include/media/AudioSystem.h +++ b/include/media/AudioSystem.h @@ -48,9 +48,10 @@ public: enum audio_routes { ROUTE_EARPIECE = (1 << 0), ROUTE_SPEAKER = (1 << 1), - ROUTE_BLUETOOTH = (1 << 2), + ROUTE_BLUETOOTH_SCO = (1 << 2), ROUTE_HEADSET = (1 << 3), - ROUTE_ALL = (ROUTE_EARPIECE | ROUTE_SPEAKER | ROUTE_BLUETOOTH | ROUTE_HEADSET) + ROUTE_BLUETOOTH_A2DP = (1 << 4), + ROUTE_ALL = 0xFFFFFFFF }; /* These are static methods to control the system-wide AudioFlinger @@ -95,6 +96,10 @@ public: static float linearToLog(int volume); static int logToLinear(float volume); + static status_t getOutputSamplingRate(int* samplingRate); + static status_t getOutputFrameCount(int* frameCount); + static status_t getOutputLatency(uint32_t* latency); + // ---------------------------------------------------------------------------- private: @@ -115,6 +120,9 @@ private: static Mutex gLock; static sp<IAudioFlinger> gAudioFlinger; static audio_error_callback gAudioErrorCallback; + static int gOutSamplingRate; + static int gOutFrameCount; + static uint32_t gOutLatency; }; }; // namespace android |