-
VC++ 模拟实现网络语音电话
VC++ 模拟实现网络语音电话,类似语音聊天的功能,这是一个通过网络实现的网络语音电话,功能目前是比较基础的,仅供学习参考吧。本实例当时在Windows 2000环境下运行通过。相关的代码如下:
#define BUFFERSIZE 5120 //缓冲区大小
static HWAVEIN hWaveIn ; //录音设备句柄
static HWAVEOUT hWaveOut ; //播放设备句柄
static PBYTE pBufferIn[2]; //用于接收和播放的两块缓冲区
static PBYTE pBufferOut[2]; //用于发送和录音的两块缓冲区
static PWAVEHDR pWHIn[2]; //用于录音的PWAVEHDR结构数组
static PWAVEHDR pWHOut[2]; //用于播放的PWAVEHDR结构数组
static WAVEFORMATEX waveform ; //用于打开音频设备的WAVEFORMATEX结构
int nIn = 0; //当前播放缓冲区号
int nOut = 0; //当前录音缓冲区号
int nComState = 1; //显示通话状态信息的变量
CString LocalIP; //本机IP地址
CString RemoteIP; //远端主机IP地址
CServerAS sServer; //服务器套接字
CClientAS sClient; //客户端套接字
CServerAS sListen; //监听套接字
BOOL ConnectDown = FALSE; //“连接”按钮是否被按下
BOOL sState = FALSE; //是否处于服务器端状态
BOOL cState = FALSE; //是否处于客户端状态
- 2022-02-14 11:56:52下载
- 积分:1
-
机动目标的机动不确定。机动频率我..
在机动目标跟踪中,机动目标模型是机动目标跟踪的基本要素之一,一般希望机动目标模型能准确表征目标机动时的各种运动状态。比较常用的模型有匀速运动(CV)模型、匀加速运动(CA) 模型、时间相关模型(Singer)和机动目标“当前”统计模型。上述模型均采用机动频率表征目标的机动情况。在应用当中,通常采用固定的机动频率,这就表示机动目标的机动时间是一定的,而实际上机动目标的机动时间是不断变化的,也就是说机动频率是不断变化的,采用固定机动频率必然会带来误差。采样周期在0.5―2S时,机动频率越小跟踪精度越高[1],但机动频率仍然是固定值。本文提出的基于神经网络的机动频率自适应调整方法可以使机动频率随机动而变化,从而提高状态估计的准确性,提高跟踪精度。本文将小波神经网络用于机动目标跟踪中机动频率的自适应调整,该算法对机动目标“当前”统计模型中的机动频率进行实时修改, 从而自适应的改变机动频率,使跟踪算法与目标的真实状态更接近。该算法采用小波神经网络的离线训练,实时性好。-The maneuver of the maneuvering target is uncertain. The maneuvering frequency is constantly changeable, but traditionally it is beforehand determined as a constant based on the target state estimation in the state model of the maneuvering target. The maneuver of the maneuvering target makes the kinematics equation of the target model mismatch with the practical motion model and the tracking error will be increased. Based on the advantages of the self-learning, the rapid convergence rate and the nonlinear approximation ability of the wavelet neural network,
- 2022-10-19 14:20:03下载
- 积分:1
-
websocket_assistant
websocket client by MFC
- 2018-11-21 23:47:52下载
- 积分:1
-
C#+ASP.NET,利用SMTP发送电子邮件
C#+ASP.NET,利用SMTP发送电子邮件-C#+ ASP.NET, the use of SMTP e-mail
- 2022-01-21 23:27:28下载
- 积分:1
-
FPGA_DSP_Rapid-IO
基于FPGA实现DSP与Rapid-IO网络互联()
- 2017-10-31 09:53:20下载
- 积分:1
-
arm9 development
is extremely important for arm9 development board.
arm9 development
is extremely important for arm9 development board.
- 2022-01-28 04:34:05下载
- 积分:1
-
SSD+SAD+NCC算法
说明: 立体匹配 计算机视觉 SSD+SAD+NCC算法(SSD+SAD+NCC algorithm)
- 2019-02-15 21:20:01下载
- 积分:1
-
90550001-v5.10fix-mods
说明: MITSU LANCER EVO 7 ROM IMAGES
- 2020-06-24 00:40:02下载
- 积分:1
-
IBM培训用的uml课件,对学习软件开发的人员是不错的资料
IBM培训用的uml课件,对学习软件开发的人员是不错的资料
- 2022-02-22 00:55:14下载
- 积分:1
-
table
用来创建表结构,其中包含对表字段的解释和命名,其他都随意了。不知道够不够20字(Used to create table structure, which includes the interpretation and naming of table fields, everything else is optional. Do not know enough 20 words)
- 2019-02-25 16:43:16下载
- 积分:1