diff options
author | Eric Laurent <elaurent@google.com> | 2014-07-15 10:38:16 -0700 |
---|---|---|
committer | Eric Laurent <elaurent@google.com> | 2014-07-15 10:38:16 -0700 |
commit | 7c5b60ae8b8793b2d601ecf459807c974120331b (patch) | |
tree | d96498c99615b041ec43a37f5a459680e7f4c340 /services/audiopolicy/AudioPolicyInterfaceImplLegacy.cpp | |
parent | 333f66d4642ddd36b42668da2767551ba25f0248 (diff) | |
download | frameworks_av-7c5b60ae8b8793b2d601ecf459807c974120331b.zip frameworks_av-7c5b60ae8b8793b2d601ecf459807c974120331b.tar.gz frameworks_av-7c5b60ae8b8793b2d601ecf459807c974120331b.tar.bz2 |
audio policy: build with USE_LEGACY_AUDIO_POLICY
Change-Id: I9def12ea689b00c0295c670c07373dacfb186799
Diffstat (limited to 'services/audiopolicy/AudioPolicyInterfaceImplLegacy.cpp')
-rwxr-xr-x | services/audiopolicy/AudioPolicyInterfaceImplLegacy.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/services/audiopolicy/AudioPolicyInterfaceImplLegacy.cpp b/services/audiopolicy/AudioPolicyInterfaceImplLegacy.cpp index 406988c..0a246f2 100755 --- a/services/audiopolicy/AudioPolicyInterfaceImplLegacy.cpp +++ b/services/audiopolicy/AudioPolicyInterfaceImplLegacy.cpp @@ -485,4 +485,17 @@ status_t AudioPolicyService::setAudioPortConfig(const struct audio_port_config * return INVALID_OPERATION; } +audio_io_handle_t AudioPolicyService::getOutputForAttr(const audio_attributes_t *attr __unused, + uint32_t samplingRate, + audio_format_t format, + audio_channel_mask_t channelMask, + audio_output_flags_t flags, + const audio_offload_info_t *offloadInfo) +{ + //FIXME: temporary to fix build with USE_LEGACY_AUDIO_POLICY + audio_stream_type_t stream = AUDIO_STREAM_MUSIC; + return getOutput(stream, samplingRate, format, channelMask, flags, offloadInfo); +} + + }; // namespace android |