• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2024-2024 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 ST_AUDIO_EC_INFO_H
17 #define ST_AUDIO_EC_INFO_H
18 
19 #include <string>
20 
21 #include "audio_device_descriptor.h"
22 #include "audio_device_info.h"
23 #include "audio_adapter_info.h"
24 
25 namespace OHOS {
26 namespace AudioStandard {
27 
28 enum EcType {
29     EC_TYPE_NONE,
30     EC_TYPE_SAME_ADAPTER,
31     EC_TYPE_DIFF_ADAPTER
32 };
33 
34 struct AudioEcInfo {
AudioEcInfoAudioEcInfo35     AudioEcInfo()
36     {
37         inputDevice.deviceType_ = DEVICE_TYPE_DEFAULT;
38         outputDevice.deviceType_ = DEVICE_TYPE_DEFAULT;
39     }
40     AudioDeviceDescriptor inputDevice;
41     AudioDeviceDescriptor outputDevice;
42     EcType ecType = EC_TYPE_NONE;
43     std::string ecInputAdapter = "";
44     std::string ecOutputAdapter = "";
45     std::string samplingRate = "";
46     std::string format = "";
47     std::string channels = "";
48     PipeInfo pipeInfo;
49 };
50 
51 } // namespace AudioStandard
52 } // namespace OHOS
53 
54 #endif // ST_AUDIO_EC_INFO_H
55