1 /* 2 * Copyright (c) 2023 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16 #ifndef I_AUDIO_SERVER_INTERFACE_H 17 #define I_AUDIO_SERVER_INTERFACE_H 18 19 #include "audio_info.h" 20 21 /* SAID: 3001 */ 22 namespace OHOS { 23 namespace AudioStandard { 24 enum class AudioServerInterfaceCode { 25 GET_AUDIO_PARAMETER, 26 SET_AUDIO_PARAMETER, 27 GET_EXTRA_AUDIO_PARAMETERS, 28 SET_EXTRA_AUDIO_PARAMETERS, 29 SET_MICROPHONE_MUTE, 30 SET_AUDIO_SCENE, 31 UPDATE_ROUTE_REQ, 32 GET_TRANSACTION_ID, 33 SET_PARAMETER_CALLBACK, 34 GET_REMOTE_AUDIO_PARAMETER, 35 SET_REMOTE_AUDIO_PARAMETER, 36 NOTIFY_DEVICE_INFO, 37 CHECK_REMOTE_DEVICE_STATE, 38 SET_VOICE_VOLUME, 39 SET_AUDIO_MONO_STATE, 40 SET_AUDIO_BALANCE_VALUE, 41 CREATE_AUDIOPROCESS, 42 LOAD_AUDIO_EFFECT_LIBRARIES, 43 REQUEST_THREAD_PRIORITY, 44 CREATE_AUDIO_EFFECT_CHAIN_MANAGER, 45 SET_OUTPUT_DEVICE_SINK, 46 CREATE_PLAYBACK_CAPTURER_MANAGER, 47 SET_SUPPORT_STREAM_USAGE, 48 REGISET_POLICY_PROVIDER, 49 SET_WAKEUP_CLOSE_CALLBACK, 50 SET_CAPTURE_SILENT_STATE, 51 UPDATE_SPATIALIZATION_STATE, 52 OFFLOAD_SET_VOLUME, 53 OFFLOAD_DRAIN, 54 OFFLOAD_GET_PRESENTATION_POSITION, 55 OFFLOAD_SET_BUFFER_SIZE, 56 NOTIFY_STREAM_VOLUME_CHANGED, 57 GET_CAPTURE_PRESENTATION_POSITION, 58 GET_RENDER_PRESENTATION_POSITION, 59 AUDIO_SERVER_CODE_MAX = GET_RENDER_PRESENTATION_POSITION, 60 }; 61 } // namespace AudioStandard 62 } // namespace OHOS 63 64 #endif // I_AUDIO_SERVER_INTERFACE_H 65