惠普声卡驱动hp450是全双工声卡吗

HP惠普笔记本万能声卡驱动 2011 完整版破解版下载,速下载
您的位置:&>&&>&
本类月排行
本类总排行
| 一款HP惠普笔记本声卡专用驱动程序集
软件大小:7.85 MB
下载次数:
软件授权: 免费软件
软件语言:简体中文
官方网站:
更新时间: 16:05:00
软件类型:.zip
软件类型:国产软件
应用平台:Windows Vista/Win2003/WinXP/Win2000/WinNT
HP惠普笔记本万能声卡驱动是一款HP惠普笔记本声卡专用驱动程序集。支持目前绝大多数HP惠普笔记本的声卡。解压后请选择用系统驱动向导方式安装。 本文引自速下载()
?HP惠普笔记本万能声卡驱动 2011 完整版注册码请在本站查找,如果站点内容有侵犯您权益的地方,请速与本站联系
? 所有软件已经过速下载--打造安全的软件下载家园安装检测,如不能正常运行,请检查环境和硬件
? HP惠普笔记本万能声卡驱动 2011 完整版绿色,官方下载。解决mini2440声卡全双工问题 实现同时录音及播放_Linux编程_Linux公社-Linux系统门户网站
你好,游客
解决mini2440声卡全双工问题 实现同时录音及播放
来源:Linux社区&
作者:Canbus
#include&&unistd.h& &
#include&&fcntl.h& &
#include&&sys/types.h& &
#include&&sys/ioctl.h& &
#include&&stdlib.h& &
#include&&stdio.h& &
#include&&linux/soundcard.h& &
#include&&pthread.h& &
#define&LENGTH&3 &
#define&RATE&8000 &
#define&SIZE&8 &
#define&CHANNELS&1 &&
unsigned&char&buf[LENGTH&*&RATE&*&SIZE&*&CHANNELS&/8]; &&
int&main() &&
&&&&int&fd_r,fd_w; &&
&&&&int& &&
&&&&int& &&
&&&&pid_t& &&
&&&&int&recing&=&1,playing&=&0; &&
&&&&pid&=&fork(); &&
&&&&if(pid&&&0){ &&
&&&&&&&&perror("error&in&fork\n"); &&
&&&&if(pid&==&0){ &&
&&&&&&&&fd_r&=&open("/dev/dsp",O_RDONLY); &&
&&&&&&&&if(fd_r&&&0){ &&
&&&&&&&&&&&&perror("open&read&of&/dev/dsp&failed"); &&
&&&&&&&&&&&&exit(1); &&
&&&&&&&&} &&
&&&&&&&& &&
&&&&&&&&arg&=&SIZE; &&
&&&&&&&&status&=&ioctl(fd_r,SOUND_PCM_WRITE_BITS,&arg); &&
&&&&&&&&if(status&==&-1) &&
&&&&&&&&&&&&perror("SOUND_PCM_WRITE_BITS&ioctl&failed"); &&
&&&&&&&&if(arg&!=&SIZE) &&
&&&&&&&&&&&&perror("unable&to&set&sample&size"); &&
&&&&&&&& &&
&&&&&&&& &&
&&&&&&&&arg&=&CHANNELS; &&
&&&&&&&&status&=&ioctl(fd_r,SOUND_PCM_WRITE_CHANNELS,&arg); &&
&&&&&&&&if(status&==&-1) &&
&&&&&&&&&&&&perror("SOUND_PCM_WRITE_CHANNELS&ioctl&failed"); &&
&&&&&&&&if(arg&!=&CHANNELS) &&
&&&&&&&&&&&&perror("unable&to&set&number&of&channels"); &&
&&&&&&&& &&
&&&&&&&&arg&=&RATE; &&
&&&&&&&&status&=&ioctl(fd_r,SOUND_PCM_WRITE_RATE,&arg); &&
&&&&&&&&if(status&==&-1) &&
&&&&&&&&&&&&perror("SOUND_PCM_WRITE_WRITE&ioctl&failed"); &&
&&&&&&&&while(1) &&
&&&&&&&&{ &&
&&&&&&&&&&&&if(playing==&0){ &&
&&&&&&&&&&&&&&&&recing&=&1; &&
&&&&&&&&&&&&&&&&printf("Say&something:"); &&
&&&&&&&&&&&&&&&&status&=&read(fd_r,buf,sizeof(buf)); &&
&&&&&&&&&&&&&&&&&&
&&&&&&&&&&&&&&&&if(status&!=&sizeof(buf)) &&
&&&&&&&&&&&&&&&&&&&&perror("read&wrong&number&of&bytes"); &&
&&&&&&&&&&&&&&&&recing&=&0; &&
&&&&&&&&&&&&} &&
&&&&&&&&} &&
&&&&else&{ &&
&&&&&&&&fd_w&=&open("/dev/dsp",O_WRONLY); &&
&&&&&&&&if(fd_w&&&0) &&
&&&&&&&&{ &&
&&&&&&&&&&&&perror("open&write&of&/dev/dsp&failed"); &&
&&&&&&&&&&&&exit(1); &&
&&&&&&&&} &&
&&&&&&&& &&
&&&&&&&&arg&=&SIZE; &&
&&&&&&&&status&=&ioctl(fd_w,SOUND_PCM_WRITE_BITS,&arg); &&
&&&&&&&&if(status&==&-1) &&
&&&&&&&&&&&&perror("SOUND_PCM_WRITE_BITS&ioctl&failed"); &&
&&&&&&&&if(arg&!=&SIZE) &&
&&&&&&&&&&&&perror("unable&to&set&sample&size"); &&
&&&&&&&& &&
&&&&&&&& &&
&&&&&&&&arg&=&CHANNELS; &&
&&&&&&&&status&=&ioctl(fd_w,SOUND_PCM_WRITE_CHANNELS,&arg); &&
&&&&&&&&if(status&==&-1) &&
&&&&&&&&&&&&perror("SOUND_PCM_WRITE_CHANNELS&ioctl&failed"); &&
&&&&&&&&if(arg&!=&CHANNELS) &&
&&&&&&&&&&&&perror("unable&to&set&number&of&channels"); &&
&&&&&&&& &&
&&&&&&&&arg&=&RATE; &&
&&&&&&&&status&=&ioctl(fd_w,SOUND_PCM_WRITE_RATE,&arg); &&
&&&&&&&&if(status&==&-1) &&
&&&&&&&&&&&&perror("SOUND_PCM_WRITE_WRITE&ioctl&failed"); &&
&&&&&&&&while(1) &&
&&&&&&&&{ &&
&&&&&&&&&&&&if(recing&==&0){ &&
&&&&&&&&&&&&&&&&playing&=&1; &&
&&&&&&&&&&&&&&&&status&=&write(fd_w,buf,sizeof(buf)); &&
&&&&&&&&&&&&&&&&&&
&&&&&&&&&&&&&&&&if(status&!=&sizeof(buf)) &&
&&&&&&&&&&&&&&&&&&&&perror("wrote&wrong&number&of&bytes"); &&
&&&&&&&&&&&&&&&&status&=&ioctl(fd_w,SOUND_PCM_SYNC,0); &&
&&&&&&&&&&&&&&&&if(status&==&-1) &&
&&&&&&&&&&&&&&&&&&&&perror("SOUND_PCM_SYNC&ioctl&failed"); &&
&&&&&&&&&&&&&&&&playing&=&0; &&
&&&&&&&&&&&&} &&
&&&&&&&&} &&
相关资讯 & & &
& (12/27/:58)
& (02/27/:23)
& (06/08/:51)
& (12/27/:33)
& (01/12/:23)
& (05/15/:47)
   同意评论声明
   发表
尊重网上道德,遵守中华人民共和国的各项有关法律法规
承担一切因您的行为而直接或间接导致的民事或刑事法律责任
本站管理人员有权保留或删除其管辖留言中的任意内容
本站有权在网站内转载或引用您的评论
参与本评论即表明您已经阅读并接受上述条款

我要回帖

更多关于 全双工的声卡 的文章

 

随机推荐