1 /* 2 * Copyright (C) 2021 The Android Open Source Project 3 * 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 17 #ifndef AUDIO_CONTROL_UTILS 18 #define AUDIO_CONTROL_UTILS 19 20 #include <stdbool.h> 21 22 #ifdef __cplusplus 23 extern "C" { 24 #endif 25 // Sets the device address specified to ducked state 26 // device_address is the device address to set ducked 27 // is_ducked is the new ducked state 28 // 29 // Note: The device address must be defined in 30 // audio_policy_configuration.xml 31 void set_device_address_is_ducked(const char *device_address, bool is_ducked); 32 33 34 // Sets the device address specified to muted state 35 // device_address is the device address to set muted 36 // is_muted is the new mute state 37 // 38 // Note: The device address must be defined in 39 // audio_policy_configuration.xml 40 void set_device_address_is_muted(const char *device_address, bool is_muted); 41 42 #ifdef __cplusplus 43 } 44 #endif // __cplusplus 45 #endif // AUDIO_CONTROL_UTILS