/* * Copyright (C) 2022 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #pragma once #include #include namespace aidl::android::hardware::audio::effect { using ::aidl::android::media::audio::common::AudioUuid; // ec7178ec-e5e1-4432-a3f4-4657e6795210 static const AudioUuid kEffectNullUuid = {static_cast(0xec7178ec), 0xe5e1, 0x4432, 0xa3f4, {0x46, 0x57, 0xe6, 0x79, 0x52, 0x10}}; // Zero UUID static const AudioUuid kEffectZeroUuid = { static_cast(0x0), 0x0, 0x0, 0x0, {0x0, 0x0, 0x0, 0x0, 0x0, 0x0}}; // 0634f220-ddd4-11db-a0fc-0002a5d5c51b static const AudioUuid kBassBoostTypeUUID = {static_cast(0x0634f220), 0xddd4, 0x11db, 0xa0fc, {0x00, 0x02, 0xa5, 0xd5, 0xc5, 0x1b}}; // fa8181f2-588b-11ed-9b6a-0242ac120002 static const AudioUuid kBassBoostSwImplUUID = {static_cast(0xfa8181f2), 0x588b, 0x11ed, 0x9b6a, {0x02, 0x42, 0xac, 0x12, 0x00, 0x02}}; // fa81862a-588b-11ed-9b6a-0242ac120002 static const AudioUuid kDownmixTypeUUID = {static_cast(0xfa81862a), 0x588b, 0x11ed, 0x9b6a, {0x02, 0x42, 0xac, 0x12, 0x00, 0x02}}; // fa8187ba-588b-11ed-9b6a-0242ac120002 static const AudioUuid kDownmixSwImplUUID = {static_cast(0xfa8187ba), 0x588b, 0x11ed, 0x9b6a, {0x02, 0x42, 0xac, 0x12, 0x00, 0x02}}; // 0bed4300-ddd6-11db-8f34-0002a5d5c51b. static const AudioUuid kEqualizerTypeUUID = {static_cast(0x0bed4300), 0xddd6, 0x11db, 0x8f34, {0x00, 0x02, 0xa5, 0xd5, 0xc5, 0x1b}}; // 0bed4300-847d-11df-bb17-0002a5d5c51b static const AudioUuid kEqualizerSwImplUUID = {static_cast(0x0bed4300), 0x847d, 0x11df, 0xbb17, {0x00, 0x02, 0xa5, 0xd5, 0xc5, 0x1b}}; // ce772f20-847d-11df-bb17-0002a5d5c51b static const AudioUuid kEqualizerBundleImplUUID = {static_cast(0xce772f20), 0x847d, 0x11df, 0xbb17, {0x00, 0x02, 0xa5, 0xd5, 0xc5, 0x1b}}; // c8e70ecd-48ca-456e-8a4f-0002a5d5c51b static const AudioUuid kEqualizerProxyUUID = {static_cast(0xc8e70ecd), 0x48ca, 0x456e, 0x8a4f, {0x00, 0x02, 0xa5, 0xd5, 0xc5, 0x1b}}; // 7261676f-6d75-7369-6364-28e2fd3ac39e static const AudioUuid kDynamicsProcessingTypeUUID = {static_cast(0x7261676f), 0x6d75, 0x7369, 0x6364, {0x28, 0xe2, 0xfd, 0x3a, 0xc3, 0x9e}}; // fa818d78-588b-11ed-9b6a-0242ac120002 static const AudioUuid kDynamicsProcessingSwImplUUID = {static_cast(0xfa818d78), 0x588b, 0x11ed, 0x9b6a, {0x02, 0x42, 0xac, 0x12, 0x00, 0x02}}; // 1411e6d6-aecd-4021-a1cf-a6aceb0d71e5 static const AudioUuid kHapticGeneratorTypeUUID = {static_cast(0x1411e6d6), 0xaecd, 0x4021, 0xa1cf, {0xa6, 0xac, 0xeb, 0x0d, 0x71, 0xe5}}; // fa819110-588b-11ed-9b6a-0242ac120002 static const AudioUuid kHapticGeneratorSwImplUUID = {static_cast(0xfa819110), 0x588b, 0x11ed, 0x9b6a, {0x02, 0x42, 0xac, 0x12, 0x00, 0x02}}; // fe3199be-aed0-413f-87bb-11260eb63cf1 static const AudioUuid kLoudnessEnhancerTypeUUID = {static_cast(0xfe3199be), 0xaed0, 0x413f, 0x87bb, {0x11, 0x26, 0x0e, 0xb6, 0x3c, 0xf1}}; // fa819610-588b-11ed-9b6a-0242ac120002 static const AudioUuid kLoudnessEnhancerSwImplUUID = {static_cast(0xfa819610), 0x588b, 0x11ed, 0x9b6a, {0x02, 0x42, 0xac, 0x12, 0x00, 0x02}}; // c2e5d5f0-94bd-4763-9cac-4e234d06839e static const AudioUuid kEnvReverbTypeUUID = {static_cast(0xc2e5d5f0), 0x94bd, 0x4763, 0x9cac, {0x4e, 0x23, 0x4d, 0x06, 0x83, 0x9e}}; // fa819886-588b-11ed-9b6a-0242ac120002 static const AudioUuid kEnvReverbSwImplUUID = {static_cast(0xfa819886), 0x588b, 0x11ed, 0x9b6a, {0x02, 0x42, 0xac, 0x12, 0x00, 0x02}}; // 47382d60-ddd8-11db-bf3a-0002a5d5c51b static const AudioUuid kPresetReverbTypeUUID = {static_cast(0x47382d60), 0xddd8, 0x11db, 0xbf3a, {0x00, 0x02, 0xa5, 0xd5, 0xc5, 0x1b}}; // fa8199c6-588b-11ed-9b6a-0242ac120002 static const AudioUuid kPresetReverbSwImplUUID = {static_cast(0xfa8199c6), 0x588b, 0x11ed, 0x9b6a, {0x02, 0x42, 0xac, 0x12, 0x00, 0x02}}; // 37cc2c00-dddd-11db-8577-0002a5d5c51b static const AudioUuid kVirtualizerTypeUUID = {static_cast(0x37cc2c00), 0xdddd, 0x11db, 0x8577, {0x00, 0x02, 0xa5, 0xd5, 0xc5, 0x1b}}; // fa819d86-588b-11ed-9b6a-0242ac120002 static const AudioUuid kVirtualizerSwImplUUID = {static_cast(0xfa819d86), 0x588b, 0x11ed, 0x9b6a, {0x02, 0x42, 0xac, 0x12, 0x00, 0x02}}; // fa819f3e-588b-11ed-9b6a-0242ac120002 static const AudioUuid kVisualizerTypeUUID = {static_cast(0xfa819f3e), 0x588b, 0x11ed, 0x9b6a, {0x02, 0x42, 0xac, 0x12, 0x00, 0x02}}; // fa81a0f6-588b-11ed-9b6a-0242ac120002 static const AudioUuid kVisualizerSwImplUUID = {static_cast(0xfa81a0f6), 0x588b, 0x11ed, 0x9b6a, {0x02, 0x42, 0xac, 0x12, 0x00, 0x02}}; // fa81a2b8-588b-11ed-9b6a-0242ac120002 static const AudioUuid kVolumeTypeUUID = {static_cast(0xfa81a2b8), 0x588b, 0x11ed, 0x9b6a, {0x02, 0x42, 0xac, 0x12, 0x00, 0x02}}; // fa81a718-588b-11ed-9b6a-0242ac120002 static const AudioUuid kVolumeSwImplUUID = {static_cast(0xfa81a718), 0x588b, 0x11ed, 0x9b6a, {0x02, 0x42, 0xac, 0x12, 0x00, 0x02}}; /** * @brief A map between effect name and effect type UUID. * All attribution in effect/effectProxy of audio_effects.xml should be listed in this map. * We need this map is because existing audio_effects.xml don't have a type UUID defined. */ static const std::map kUuidNameTypeMap = { {"bassboost", kBassBoostTypeUUID}, {"downmix", kDownmixTypeUUID}, {"dynamics_processing", kDynamicsProcessingTypeUUID}, {"equalizer", kEqualizerTypeUUID}, {"haptic_generator", kHapticGeneratorTypeUUID}, {"loudness_enhancer", kLoudnessEnhancerTypeUUID}, {"env_reverb", kEnvReverbTypeUUID}, {"preset_reverb", kPresetReverbTypeUUID}, {"reverb_env_aux", kEnvReverbTypeUUID}, {"reverb_env_ins", kEnvReverbTypeUUID}, {"reverb_pre_aux", kPresetReverbTypeUUID}, {"reverb_pre_ins", kPresetReverbTypeUUID}, {"virtualizer", kVirtualizerTypeUUID}, {"visualizer", kVisualizerTypeUUID}, {"volume", kVolumeTypeUUID}, }; } // namespace aidl::android::hardware::audio::effect