diff options
author | Eric Laurent <elaurent@google.com> | 2014-11-25 17:50:47 -0800 |
---|---|---|
committer | Eric Laurent <elaurent@google.com> | 2014-11-25 17:50:47 -0800 |
commit | caf7f48a0ef558689d39aafd187c1571ff4128b4 (patch) | |
tree | 7a2c90732783e2c90cabb6045c4ab0dcea842bf1 /include/media/AudioSystem.h | |
parent | 087eb332cdd64026de27c914194127f8fda1a846 (diff) | |
download | frameworks_av-caf7f48a0ef558689d39aafd187c1571ff4128b4.zip frameworks_av-caf7f48a0ef558689d39aafd187c1571ff4128b4.tar.gz frameworks_av-caf7f48a0ef558689d39aafd187c1571ff4128b4.tar.bz2 |
AudioRecord: use audio attributes instead of audio source.
Added AudioRecord constructor with audio attributes.
Replaced AudioPolicymanager::getInput() by getInputForAttr().
No new functionality for now.
Also:
- Fixed warnings in AudioPolicyManager
- Allocate audio session ID before calling getOutputForAttr() in
AudioTrack.
Bug: 16006090.
Change-Id: I15df21e4411db688e3096dd801cf579d76d81711
Diffstat (limited to 'include/media/AudioSystem.h')
-rw-r--r-- | include/media/AudioSystem.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/media/AudioSystem.h b/include/media/AudioSystem.h index 7f1afb3..bf1fc1c 100644 --- a/include/media/AudioSystem.h +++ b/include/media/AudioSystem.h @@ -236,12 +236,13 @@ public: // Client must successfully hand off the handle reference to AudioFlinger via openRecord(), // or release it with releaseInput(). - static audio_io_handle_t getInput(audio_source_t inputSource, + static status_t getInputForAttr(const audio_attributes_t *attr, + audio_io_handle_t *input, + audio_session_t session, uint32_t samplingRate, audio_format_t format, audio_channel_mask_t channelMask, - audio_session_t sessionId, - audio_input_flags_t); + audio_input_flags_t flags); static status_t startInput(audio_io_handle_t input, audio_session_t session); |