-
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
-
netstatwx_v1.0
this program change title of menu of windows
- 2013-10-15 14:08:39下载
- 积分:1
-
Ping
说明: 本程序能快速扫描内网IP,选择IP开始和结束段就可以使用啦,本程序内涵源码,逻辑简单,不需要其它控件,delphi 2010开发(This program can scan intranet IP quickly.)
- 2020-06-21 08:40:02下载
- 积分:1
-
数据结构
说明: 数据结构基础,以c语言为基础,含有数据结构基础大类(Data structure foundation, based on c language, contains a large class of data structure)
- 2019-01-25 19:36:05下载
- 积分:1
-
数据结构头文件
说明: 队列、链表等基础数据结构头文件,cc++仅供学习(dataStructure head file ,just for learning)
- 2020-06-25 16:20:01下载
- 积分:1
-
eof_uv
说明: 风场EOF分析,适用于nc资料,对原始场、距平场、标准场,程序内有详细说明。(The wind field EOF analysis is applicable to the nc data, and the original field, the anomaly field, and the standard field are detailed in the program.)
- 2021-03-22 01:09:16下载
- 积分:1
-
accessweboffline
说明: access编程的最好帮助文档,包括很多相关api编程(access to the best programming help documentation, including many related api programming)
- 2006-04-30 16:06:48下载
- 积分:1
-
跳频信号系统的仿真
说明: 跳频通信系统的仿真,其中还有误比特分析参数设置,误bit率分析(通过在不同的信噪比下传输多个帧做统计分析,可以通过增加传输帧数目获取更加精确的误比特率;更改信噪比获取不同信噪比下的性能),误bit率曲线(Simulation of frequency hopping communication system, including bit error analysis parameter setting, bit error rate analysis (through statistical analysis of transmitting multiple frames under different SNR, more accurate bit error rate can be obtained by increasing the number of transmitted frames; performance under different SNR can be obtained by changing SNR), and bit error rate curve)
- 2021-02-15 14:59:48下载
- 积分:1
-
HighSeismicZones
桥梁电子杂志,内容较为丰富,希望对大家有所帮助(Bridges E-zine, the content is more rich in hope to help everyone)
- 2008-07-25 00:11:03下载
- 积分:1
-
动态无功优化
说明: 改进的快速粒子群优化算法计算含DG配电网无功优化和运行费用最优解(Improved Fast Particle Swarm Optimization for Reactive Power Optimization and Operation Cost Optimization of Distribution Network with DG)
- 2021-01-07 14:58:52下载
- 积分:1