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 AUDIO_HDIADAPTER_INFO_H 17 #define AUDIO_HDIADAPTER_INFO_H 18 19 #define MAX_MIX_CHANNELS 32 20 #define PA_MAX_OUTPUTS_PER_SOURCE 256 21 22 // should be same with AudioSampleFormat in audio_info.h 23 enum HdiAdapterFormat { 24 SAMPLE_U8 = 0, 25 SAMPLE_S16 = 1, 26 SAMPLE_S24 = 2, 27 SAMPLE_S32 = 3, 28 SAMPLE_F32 = 4, 29 INVALID_WIDTH = -1 30 }; 31 32 enum RenderCallbackType { 33 CB_NONBLOCK_WRITE_COMPLETED = 0, 34 CB_DRAIN_COMPLETED = 1, 35 CB_FLUSH_COMPLETED = 2, 36 CB_RENDER_FULL = 3, 37 CB_ERROR_OCCUR = 4, 38 }; 39 40 #endif