マイクロフォンとスピーカの音量制御(VC++) WindowsオーディオミキサーAPIを使って、マイクロフォンとスピーカの音量制御するプログラムのメモです。メモの内容は、下の六つの処理です。 1.ミキサーデバイスのオープン。mixerOpenというAPI使います。 テストの為、CMicVolumeというクラスを実装しました。 class CMicVolume : CObject { public: CMicVolume(); ~CMicVolume(); int iCurIndex; CStringArray strarr; CDWordArray intarr; bool GetVolume(); bool SetVolume(int iVol); bool GetDeviceList(); int iMicVol; int iMixMaxVol; int iMicOldVol; }; |