1 /* 2 * Copyright (c) 2021-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 AUDIO_SOURCE_TYPE_H 17 #define AUDIO_SOURCE_TYPE_H 18 19 /** 20 * Enumerates the capturer source type 21 */ 22 #ifdef __cplusplus 23 namespace OHOS { 24 namespace AudioStandard { 25 #endif 26 enum SourceType { 27 SOURCE_TYPE_INVALID = -1, 28 SOURCE_TYPE_MIC, 29 SOURCE_TYPE_VOICE_RECOGNITION = 1, 30 SOURCE_TYPE_PLAYBACK_CAPTURE = 2, 31 SOURCE_TYPE_WAKEUP = 3, 32 SOURCE_TYPE_VOICE_COMMUNICATION = 7, 33 SOURCE_TYPE_ULTRASONIC = 8, 34 SOURCE_TYPE_VOICE_MODEM_COMMUNICATION = 9, // only for voice call 35 SOURCE_TYPE_MAX = SOURCE_TYPE_VOICE_MODEM_COMMUNICATION 36 }; 37 #ifdef __cplusplus 38 } // namespace AudioStandard 39 } // namespace OHOS 40 #endif 41 #endif //AUDIO_SOURCE_TYPE_H 42