Click here to Skip to main content
15,906,816 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: template as a friend? (Expert question:) Pin
valikac1-Oct-04 5:36
valikac1-Oct-04 5:36 
Generalany borland helpers Pin
porac691-Oct-04 2:47
porac691-Oct-04 2:47 
GeneralRe: any borland helpers Pin
Antony M Kancidrowski1-Oct-04 4:51
Antony M Kancidrowski1-Oct-04 4:51 
GeneralRe: any borland helpers Pin
porac691-Oct-04 5:24
porac691-Oct-04 5:24 
GeneralRe: any borland helpers Pin
David Crow1-Oct-04 5:49
David Crow1-Oct-04 5:49 
GeneralRe: any borland helpers Pin
porac691-Oct-04 6:12
porac691-Oct-04 6:12 
GeneralRe: any borland helpers Pin
porac692-Oct-04 11:16
porac692-Oct-04 11:16 
GeneralSetting The Microphone Recording Volume Pin
jerry0davis1-Oct-04 0:46
jerry0davis1-Oct-04 0:46 
I have a USB Telephone which is basically a USB speaker and microphone.

I am having trouble setting the recording volume.

I know I need to use mciSendCommand(wDeviceID, MCI_SETAUDIO, MCI_DGV_SETAUDIO_VOLUME, (DWORD)volume);. I am having trouble finding the wDeviceID for the microphone.

I have written some test code to find the wDeviceID and device name, but even that doesn't work! Frown | :-( Can anyone tell me what I'm doing wrong please? TIA

MCI_SYSINFO_PARMS siParams;<br />
	ZeroMemory(&siParams, sizeof(siParams));<br />
	char str[MAX_PATH];<br />
	siParams.lpstrReturn = str;<br />
	siParams.dwRetSize = MAX_PATH;<br />
	siParams.wDeviceType = MCI_ALL_DEVICE_ID;<br />
<br />
	for(int i = 0; i < 5; i++)<br />
	{<br />
		siParams.dwNumber = i;<br />
		MCIERROR mci = mciSendCommand(<br />
			i,<br />
			MCI_SYSINFO,<br />
			MCI_SYSINFO_NAME,<br />
			(DWORD)(LPMCI_SYSINFO_PARMS)&siParams);<br />
		TRACE("%d %02d, %s\n", mci, i, siParams.lpstrReturn);<br />
	}




I feel like I'm diagonally parked in a parallel universe

Jerry Davis
http://www.astad.org
http://www.jvf.co.uk
GeneralRe: Setting The Microphone Recording Volume Pin
4apai1-Oct-04 1:27
4apai1-Oct-04 1:27 
GeneralRe: Setting The Microphone Recording Volume Pin
ThatsAlok1-Oct-04 20:24
ThatsAlok1-Oct-04 20:24 
GeneralOne time password generated Pin
Rajesh_K_Sharma1-Oct-04 0:29
Rajesh_K_Sharma1-Oct-04 0:29 
GeneralRe: One time password generated Pin
4apai1-Oct-04 1:23
4apai1-Oct-04 1:23 
GeneralControl Enabled or Not Pin
Imtiaz Murtaza1-Oct-04 0:10
Imtiaz Murtaza1-Oct-04 0:10 
GeneralRe: Control Enabled or Not Pin
Mike Beckerleg1-Oct-04 0:20
Mike Beckerleg1-Oct-04 0:20 
GeneralCatch 'kill interrupt' Pin
Abebe1-Oct-04 0:03
Abebe1-Oct-04 0:03 
GeneralPassing struct in a &quot;INSERT INTO...&quot; Statement Pin
filo6530-Sep-04 23:56
filo6530-Sep-04 23:56 
GeneralRe: Passing struct in a &quot;INSERT INTO...&quot; Statement Pin
4apai1-Oct-04 0:22
4apai1-Oct-04 0:22 
GeneralRe: Passing struct in a &quot;INSERT INTO...&quot; Statement Pin
Tim Smith1-Oct-04 3:52
Tim Smith1-Oct-04 3:52 
GeneralGDI problem Pin
pdtrung30-Sep-04 22:33
pdtrung30-Sep-04 22:33 
GeneralRe: GDI problem Pin
Iain Clarke, Warrior Programmer1-Oct-04 0:09
Iain Clarke, Warrior Programmer1-Oct-04 0:09 
GeneralGDI problem...:doh: Pin
pdtrung30-Sep-04 22:25
pdtrung30-Sep-04 22:25 
Generalmemory error Pin
Jayadev MV30-Sep-04 22:25
Jayadev MV30-Sep-04 22:25 
GeneralRe: memory error Pin
4apai30-Sep-04 23:22
4apai30-Sep-04 23:22 
GeneralLogging Pin
Jerome Conus30-Sep-04 22:24
Jerome Conus30-Sep-04 22:24 
GeneralRe: Logging Pin
4apai30-Sep-04 23:36
4apai30-Sep-04 23:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.