VC++中如何控制麦克音量————100分

bird1982 2005-05-14 12:13:46
系统声音以及WAVEout的声音都已经可以控制,但麦克设备无法控制,100分跪求相关代码!
...全文
122 9 打赏 收藏 转发到动态 举报
写回复
用AI写文章
9 条回复
切换为时间正序
请发表友善的回复…
发表回复
koower 2005-08-05
  • 打赏
  • 举报
回复
有现成的类CMIXER,可以控制麦克输入音量
bird1982 2005-08-05
  • 打赏
  • 举报
回复
这么久还没人回答阿?
bird1982 2005-05-14
  • 打赏
  • 举报
回复
顶上去,大家来看,着急用
vcmute 2005-05-14
  • 打赏
  • 举报
回复
将<改为<后,测试正常
bird1982 2005-05-14
  • 打赏
  • 举报
回复
顶啊,着急死了
bird1982 2005-05-14
  • 打赏
  • 举报
回复
简单的看了下,可以调通过,但没看到效果
bird1982 2005-05-14
  • 打赏
  • 举报
回复
看到了,但代码里面有个变量ltcConnections没有被定义阿~~
vcmute 2005-05-14
  • 打赏
  • 举报
回复
http://www.cmaniacs.com/v1/index.php?path=Sorgenti%2FAudio%2FVari&text=SetRecordingDevice.cpp

Functions usage:

The SelectSrc function takes the name /or part of it/ of the device you want to select. For example:
int a;
a = SelectSrc("Mic"); //This should select the mic for recording

The SetVolume function takes two parameters- the name of the device (just like in SelectSrc) and the volume to set. To see the max volume you can have on the given mixer control, just see what the function returns. For example, to set mic recording's volume to max, do this:

long int a;
a = SetVolume("Mic",0);
a = SetVolume("Mic",a);
vcmute 2005-05-14
  • 打赏
  • 举报
回复
Mixer
http://www.delphibbs.com/delphibbs/dispq.asp?lid=1581450

19,468

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 图形处理/算法
社区管理员
  • 图形处理/算法社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧