欢迎来到天天文库
浏览记录
ID:55720541
大小:322.50 KB
页数:49页
时间:2020-05-28
《USB电话语音盒编程接口函数.doc》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、5.4USB电话语音盒编程接口函数在Windows系统平台,USB语音盒的所有接口函数名称和所需参数基本上与PCI语音卡是一致的,除非特别说明,两者函数兼容。USB语音盒提供的编程接口函数如下:初始化和关闭系统接口函数包括:unsignedshortGX_InitializeSystem(void);unsignedshortGX_CloseSystem(void);获取系统参数接口函数unsignedlongGX_GetCardSerialNo(unsignedshortCardNo);unsignedshortGX_GetTotalCardCount(void);u
2、nsignedshortGX_GetCardStatus(unsignedshortCardNo);unsignedshortGX_GetTotalChannelCount(void);unsignedshortGX_GetTotalVoiceChannel(void);unsignedshortGX_GetChannelType(unsignedshortChannelNo);unsignedshortGX_GetChannelStatus(unsignedshortChannelNo);unsignedshortGX_UsbWorkStatus();unsigned
3、shortGX_SetBugMsg(unsignedshortType);设置压缩函数unsignedshortGX_SetVoiceCompress(unsignedshortCompressType)打开关闭语音通道接口函数unsignedshortGX_OpenChannel(unsignedshortChannelNo);unsignedshortGX_CloseChannel(unsignedshortChannelNo);获取事件接口函数unsignedshortGX_GetMessageForWindows(unsignedshortWaitTime,PG
4、X_MESSAGE_INFOpMessageBuffer);unsignedshortCheckMessageForWindows(unsignedshortWaitTime,PGX_MESSAGE_INFOpMessageBuffer);两线模拟中继模块操作接口函数包括:unsignedshortGX_TrunkHookOff(unsignedshortChannelNo);unsignedshortGX_TrunkHookOn(unsignedshortChannelNo);unsignedshortGX_StartDetectTrunkPolarity(unsig
5、nedshortChannelNo);unsignedshortGX_StopDetectTrunkPolarity(unsignedshortChannelNo);unsignedshortGX_StartTrunkPickUp(unsignedshortChannelNo,unsignedshortTimeByMicroSecond);unsignedshortGX_StopTrunkPickUp(unsignedshortChannelNo);用户模块操作接口函数unsignedshortGX_UserRingOn(unsignedshortChannelNo,u
6、nsignedshortRingOnTime,unsignedshortRingOffTime,unsignedshortTotalTimes);unsignedshortGX_UserRingOff(unsignedshortChannelNo);unsignedshortGX_SetUserPickUpTime(unsignedshortTimeByMicroSecond);侦听通道接口函数unsignedshortGX_ListenChannel(unsignedshortChannelNo,unsignedshortSourceChannel);unsigned
7、shortGX_UnListenChannel(unsignedshortChannelNo);unsignedshortGX_SetLink(unsignedshortChannelNo,unsignedshortOtherChannel);unsignedshortGX_ClearLink(unsignedshortChannelNo,unsignedshortOtherChannel);声卡监听/放音接口函数unsignedshortGX_StartPlaySound(charFileName,unsignedlongOffset,
此文档下载收益归作者所有