Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MCI_SAVE does not return control

Status
Not open for further replies.

griever

Technical User
Feb 19, 2001
2
SG
Hi,

I was wondering if anyone else faces this problem or could help me on it.

I am using the MCIsendCommand to open a recording device (the mic) record and save.

Everything is successful till the save portion. I use this: mciSendCommand(wDeviceID,MCI_SAVE,MCI_SAVE_FILE|MCI_WAIT,(DWORD)(DPVOID*)&lpfilename);

A save is actually done and a wavefile with name corresponding to the lpfilename struct is created and can be player with winamp. However, the command does not return comtrol to my main program. and when i invoke the recording function again, it tells me the devicename is still in use and to use another alias. This is not practical if i have to do it for like 100 recordings then i would need 100 unique DeviceIDs.

BTW i placed my function in the CView class and the record function is invoked with a onKeyDown. I have tried with menu too and faced the same thing. Can anyone help?

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top