-
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
-
微信小程序UI瀑布流布局源码范例
微信小程序UI瀑布流布局源码范例,这是个比较流行的布局了,在WEB开发、移动开发中,都经常见到瀑布流,那么在微信小程序中如何实现瀑布流呢?本源码会给你一个容易理解的答案,你会通过这个小程序源码快速学习如何在微信的小程序中实现瀑布流布局,效果请参见截图所示。
- 2022-02-11 14:06:34下载
- 积分:1
-
IRLS
实现了机器学习中的logistic regression 算法,可以对三类高斯分布的采样进行分类(Achieved in the logistic regression machine learning algorithm, can be three types of Gaussian distribution of samples to classify)
- 2009-10-28 05:53:13下载
- 积分:1
-
防火墙和网络安全方面的测试规范和国家标准,主要是将硬件防火墙。
防火墙和网络安全方面的测试规范和国家标准,主要是将硬件防火墙。-Core 墙 kite out false 全 She determined the source of fermentation试Master lonesome cavity mode范和disadvantages Catalpol准Corrections lynx Did Wei ,硬glass out kite 墙 。
- 2022-02-11 12:05:38下载
- 积分:1
-
很经典的游戏,完全重新开发,很适合工作很忙的人来玩,老少皆移,而且游戏有很强的逻辑性!...
很经典的游戏,完全重新开发,很适合工作很忙的人来玩,老少皆移,而且游戏有很强的逻辑性!-classic games, the complete re-development, the work is very suitable for busy people to play, young and old were moved, but the game has a strong logic!
- 2022-04-25 14:20:14下载
- 积分:1
-
LFM
说明: LFM处理雷达信号的仿真,随机产生目标并模拟出雷达回波采集到的目标速度,位置等信息(LFM processes the simulation of the radar signal, generates the target randomly, and simulates the target velocity, position, and other information collected by radar echo)
- 2021-03-01 22:40:46下载
- 积分:1
-
动作类游戏,很适合现在的年轻朋友玩,而且设备简单,操作灵活,内容有趣...
动作类游戏,很适合现在的年轻朋友玩,而且设备简单,操作灵活,内容有趣-action game, which is perfect for the young people to play, but simple equipment, operational flexibility, interesting!
- 2022-02-03 05:38:22下载
- 积分:1
-
按照数据结构书编的程序,编译出来完事的,能运行的"逆置带头结点的动态单链表L"...
按照数据结构书编的程序,编译出来完事的,能运行的"逆置带头结点的动态单链表L"-book series of the process, get away from the compiler can run the "reverse home lead the dynamic node L-List"
- 2022-10-19 16:25:03下载
- 积分:1
-
单摆减振
参考文献《Acceleration planning based anti-swing and position control for double-pendulum cranes》,实现单摆系统的软着陆,降低系统振动。(According to the references "Acceleration planning based anti-swing and position control for double-pendulum cranes", A soft landing of the pendulum system and vibration reduction is realized.)
- 2019-02-26 14:46:09下载
- 积分:1
-
APSO1
改进的粒子群算法,适用与多目标最优化项目,收敛速度快(The improved particle swarm optimization algorithm is applicable to multi objective optimization projects, and the convergence speed is fast)
- 2017-11-06 20:01:18下载
- 积分:1