blob: 75aab24efebb5f5eb45a1b527821a5e7ea9a9a40 [file] [log] [blame]
Mikhail Naganov7cbf2f12016-10-27 20:05:35 -07001/*
Kevin Rocard96d2cd92018-11-14 16:22:07 -08002 * Copyright (C) 2018 The Android Open Source Project
Mikhail Naganov7cbf2f12016-10-27 20:05:35 -07003 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
Kevin Rocard96d2cd92018-11-14 16:22:07 -080017#ifndef ANDROID_HARDWARE_AUDIO_EFFECT_CONVERSIONS_H_
18#define ANDROID_HARDWARE_AUDIO_EFFECT_CONVERSIONS_H_
19
20#include PATH(android/hardware/audio/effect/FILE_VERSION/types.h)
Mikhail Naganov7cbf2f12016-10-27 20:05:35 -070021
22#include <string>
23
Mikhail Naganov7cbf2f12016-10-27 20:05:35 -070024#include <system/audio_effect.h>
25
26namespace android {
27namespace hardware {
28namespace audio {
29namespace effect {
Kevin Rocard96d2cd92018-11-14 16:22:07 -080030namespace CPP_VERSION {
Mikhail Naganov7cbf2f12016-10-27 20:05:35 -070031namespace implementation {
32
Kevin Rocard96d2cd92018-11-14 16:22:07 -080033using ::android::hardware::audio::effect::CPP_VERSION::EffectDescriptor;
Mikhail Naganov7cbf2f12016-10-27 20:05:35 -070034
Kevin Rocard22505e62017-12-14 18:50:12 -080035void effectDescriptorFromHal(const effect_descriptor_t& halDescriptor,
36 EffectDescriptor* descriptor);
Mikhail Naganov7cbf2f12016-10-27 20:05:35 -070037std::string uuidToString(const effect_uuid_t& halUuid);
38
Kevin Rocard22505e62017-12-14 18:50:12 -080039} // namespace implementation
Kevin Rocard96d2cd92018-11-14 16:22:07 -080040} // namespace CPP_VERSION
Mikhail Naganov7cbf2f12016-10-27 20:05:35 -070041} // namespace effect
42} // namespace audio
43} // namespace hardware
44} // namespace android
Kevin Rocard96d2cd92018-11-14 16:22:07 -080045
46#endif // ANDROID_HARDWARE_AUDIO_EFFECT_CONVERSIONS_H_