diff options
author | Glenn Kasten <gkasten@google.com> | 2012-03-06 11:22:44 -0800 |
---|---|---|
committer | Glenn Kasten <gkasten@google.com> | 2012-03-19 09:04:23 -0700 |
commit | a075db4ff9b086ac2885df77bb6da0869293df92 (patch) | |
tree | 2496dbf3d7fbb569b843780535bcea450157eb25 /include/media/AudioRecord.h | |
parent | 1746929ddc7592ab397c402724a61352e45df093 (diff) | |
download | frameworks_av-a075db4ff9b086ac2885df77bb6da0869293df92.zip frameworks_av-a075db4ff9b086ac2885df77bb6da0869293df92.tar.gz frameworks_av-a075db4ff9b086ac2885df77bb6da0869293df92.tar.bz2 |
IAudioFlinger::createTrack and openRecord flags
createTrack and openRecord don't need the "old" flags parameter,
which was either audio_policy_output_t or audio_in_acoustics_t
shifted left by 16 bits. But they do need "new" flags, which
are defined by the application use case. Initially, the only
application use case flag is timed output, but others are planned.
For output, the audio_policy_output_t flags are passed to
AudioSystem::getOutput, which returns an audio_io_handle_t, and that
handle is then passed to createTrack. So createTrack doesn't need the
old flags parameter.
For input, the audio_in_acoustics_t flags are passed to
AudioSystem::getInput, which returns an audio_io_handle_t, and that
handle is then passed to openRecord. So openRecord doesn't need the
old flags parameter.
Change-Id: I18a9870911846cca69d420c19fe6a9face2fe8c4
Diffstat (limited to 'include/media/AudioRecord.h')
-rw-r--r-- | include/media/AudioRecord.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/include/media/AudioRecord.h b/include/media/AudioRecord.h index 7df6668..5bfb65b 100644 --- a/include/media/AudioRecord.h +++ b/include/media/AudioRecord.h @@ -354,7 +354,6 @@ private: audio_format_t format, uint32_t channelMask, int frameCount, - uint32_t flags, audio_io_handle_t input); audio_io_handle_t getInput_l(); status_t restoreRecord_l(audio_track_cblk_t*& cblk); |