@chenlai89
2015-10-23T03:44:58.000000Z
字数 3831
阅读 2877
音频
.├── voe_audio_processing.h├── voe_base.h├── voe_codec.h├── voe_dtmf.h├── voe_errors.h├── voe_external_media.h├── voe_file.h├── voe_hardware.h├── voe_neteq_stats.h├── voe_network.h├── voe_rtp_rtcp.h├── voe_video_sync.h└── voe_volume_control.h
支持各个模块相应的配置。
配置网络接口发送接口 (回调形式),接收packet接口。
备注 : 有接口更改payload,码率等信息。
备注: 提供音频设备接口切换,设备ID等, 硬件AEC AGC NS 开关接口。
struct NetworkStatistics // NETEQ statistics{// current jitter buffer size in msuint16_t currentBufferSize;// preferred (optimal) buffer size in msuint16_t preferredBufferSize;// adding extra delay due to "peaky jitter"bool jitterPeaksFound;// Loss rate (network + late); fraction between 0 and 1, scaled to Q14.uint16_t currentPacketLossRate;// Late loss rate; fraction between 0 and 1, scaled to Q14.uint16_t currentDiscardRate;// fraction (of original stream) of synthesized audio inserted through// expansion (in Q14)uint16_t currentExpandRate;// fraction (of original stream) of synthesized speech inserted through// expansion (in Q14)uint16_t currentSpeechExpandRate;// fraction of synthesized speech inserted through pre-emptive expansion// (in Q14)uint16_t currentPreemptiveRate;// fraction of data removed through acceleration (in Q14)uint16_t currentAccelerateRate;// fraction of data coming from secondary decoding (in Q14)uint16_t currentSecondaryDecodedRate;// clock-drift in parts-per-million (negative or positive)int32_t clockDriftPPM;// average packet waiting time in the jitter buffer (ms)int meanWaitingTimeMs;// median packet waiting time in the jitter buffer (ms)int medianWaitingTimeMs;// min packet waiting time in the jitter buffer (ms)int minWaitingTimeMs;// max packet waiting time in the jitter buffer (ms)int maxWaitingTimeMs;// added samples in off mode due to packet losssize_t addedSamples;};
备注: 支持RFC2833 配置发送。一个接口就搞定。
需要额外添加部分
kPlaybackPerChannel = 0, // channel playbackkPlaybackAllChannelsMixed, // 混音 playbackkRecordingPerChannel, // channel recorderkRecordingAllChannelsMixed, // 混音 recordkRecordingPreprocessing // Preprocessing record
从用文件音频数据,替代设备采集的数据发送出去,以及将RX数据保存到文件中。方便调试。
备注 : 支持回调,或保存文件等各种形式。
// Warnings#define VE_PORT_NOT_DEFINED 8001#define VE_CHANNEL_NOT_VALID 8002#define VE_FUNC_NOT_SUPPORTED 8003#define VE_INVALID_LISTNR 8004#define VE_INVALID_ARGUMENT 8005#define VE_INVALID_PORT_NMBR 8006#define VE_INVALID_PLNAME 8007#define VE_INVALID_PLFREQ 8008#define VE_INVALID_PLTYPE 8009#define VE_INVALID_PACSIZE 8010.....