diff options
author | Eric Laurent <elaurent@google.com> | 2014-11-14 10:06:21 -0800 |
---|---|---|
committer | Eric Laurent <elaurent@google.com> | 2014-11-25 12:48:19 -0800 |
commit | e83b55dc29ca16092ba02f36f55fa6e0e37fd78c (patch) | |
tree | f8232611b6372b74579e3ed03dfbeb167011d257 /media/libmedia/AudioRecord.cpp | |
parent | 0f78eabb733e1413d7febd00c0bad0f0add02314 (diff) | |
download | frameworks_av-e83b55dc29ca16092ba02f36f55fa6e0e37fd78c.zip frameworks_av-e83b55dc29ca16092ba02f36f55fa6e0e37fd78c.tar.gz frameworks_av-e83b55dc29ca16092ba02f36f55fa6e0e37fd78c.tar.bz2 |
audio policy: new getOutputForAttr() prototype.
Update getOutputForAttr() prototype and group all logic
dealing with audio attributes to stream type conversion in
audio policy manager.
getOutputForAttr():
- specifies the audio session (for future use)
- returns a status code
- receives either stream type (for legacy) or audio attributes
- returns an updated streamtype
Remove logic dealing with legacy stream types to attributes conversion
from AudioTrack.
Use correct type for audio sessions in other APIs (startOutput() ...).
releaseOutput() specifies the audio session (for future use).
Bug: 18067208.
Change-Id: I1bfbe9626c04c7955d77f8a70aecfad2cb204817
Diffstat (limited to 'media/libmedia/AudioRecord.cpp')
-rw-r--r-- | media/libmedia/AudioRecord.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/media/libmedia/AudioRecord.cpp b/media/libmedia/AudioRecord.cpp index 9e7ba88..77437d1 100644 --- a/media/libmedia/AudioRecord.cpp +++ b/media/libmedia/AudioRecord.cpp @@ -445,7 +445,7 @@ status_t AudioRecord::openRecord_l(size_t epoch) } audio_io_handle_t input = AudioSystem::getInput(mInputSource, mSampleRate, mFormat, - mChannelMask, mSessionId, mFlags); + mChannelMask, (audio_session_t)mSessionId, mFlags); if (input == AUDIO_IO_HANDLE_NONE) { ALOGE("Could not get audio input for record source %d, sample rate %u, format %#x, " "channel mask %#x, session %d, flags %#x", |