系统声音以及WAVEout的声音都已经可以控制,但麦克设备无法控制,100分跪求相关代码!

解决方案 »

  1.   

    Mixer 
    http://www.delphibbs.com/delphibbs/dispq.asp?lid=1581450
      

  2.   

    http://www.cmaniacs.com/v1/index.php?path=Sorgenti%2FAudio%2FVari&text=SetRecordingDevice.cppFunctions 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); 
      

  3.   

    看到了,但代码里面有个变量ltcConnections没有被定义阿~~
      

  4.   

    将&lt改为<后,测试正常
      

  5.   

    有现成的类CMIXER,可以控制麦克输入音量