houzhongjian
2024-11-06 7412dd652c0ac48c5a17b5d9b61d5d2a0f686137
提交 | 用户 | 时间
149dd0 1 package com.iailab.netsdk.lib.structure;
H 2
3 import com.iailab.netsdk.lib.NetSDKLib;
4
5
6 /**
7  * @author 291189
8  * @version 1.0
9  * @description
10  * @date 2021/8/4 9:46
11  */
12 public class NET_ENCODE_AUDIO_INFO extends NetSDKLib.SdkStructure{
13   public   int                        dwSize;
7412dd 14     /**  参考{@link com.iailab.netsdk.lib.enumeration.NET_EM_FORMAT_TYPE}*/
149dd0 15   public   int      emFormatType;            // 码流类型,设置和获取时都需要设置值
H 16   public   int                            nDepth;                    // 音频采样深度
17   public   int                            nFrequency;                // 音频采样频率
18   public   int                            nMode;                    // 编码码率,不同编码类型定义不同:
19                                                        /* "AMR"编码码率
20                                                             0: 4.75kbps,
21                                                             1: 5.15 kbps,
22                                                             2: 5.9 kbps,
23                                                             3: 6.7 kbps,
24                                                             4: 7.4 kbps,
25                                                             5: 7.95 kbps,
26                                                             6: 10.2 kbps,
27                                                             7: 12.2 kbps,
28                                                         G726编码码率
29                                                             0: 40kbps(默认)
30                                                             1: 16kbps
31                                                             2: 24kbps
32                                                             3: 32kbps
33                                                         其他: 暂无定义*/
34
35   public   int                            nFrameType;                // 音频打包模式, 0-DHAV, 1-PS
36   public int                            nPacketPeriod;            // 音频打包周期, ms
37
38     public NET_ENCODE_AUDIO_INFO() {
39         this.dwSize = this.size();
40     }
41 }