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_CALL = 4, 33 SOURCE_TYPE_VOICE_COMMUNICATION = 7, 34 SOURCE_TYPE_ULTRASONIC = 8, 35 SOURCE_TYPE_VIRTUAL_CAPTURE = 9, // only for voice call 36 SOURCE_TYPE_VOICE_MESSAGE = 10, 37 SOURCE_TYPE_REMOTE_CAST = 11, 38 SOURCE_TYPE_VOICE_TRANSCRIPTION = 12, 39 SOURCE_TYPE_CAMCORDER = 13, 40 SOURCE_TYPE_UNPROCESSED = 14, 41 SOURCE_TYPE_EC = 15, 42 SOURCE_TYPE_MIC_REF = 16, 43 SOURCE_TYPE_LIVE = 17, 44 SOURCE_TYPE_MAX = SOURCE_TYPE_LIVE 45 }; 46 47 #ifdef __cplusplus 48 } // namespace AudioStandard 49 } // namespace OHOS 50 #endif 51 #endif //AUDIO_SOURCE_TYPE_H 52