April 26th, 2013, 12:49 PM
mci_close with a cda file
I can not get the sound to stop playing a cda file with MCI_CLOSE.
This code works with wav and mpg and avi files.
if (wParam == IDC_PLAY)
//A CDA File
if (wParam == IDC_CLOSEMCI)
April 26th, 2013, 02:32 PM
Re: mci_close with a cda file
Why don't you use mciSendCommand?
You could use some additional info if you used it like
Returns zero if successful or an error otherwise. The low-order word of the returned DWORD
value contains the error return value. If the error is device-specific, the high-order word of the return value is the driver identifier; otherwise, the high-order word is zero. For a list of possible return values, see MCIERR Return Values
To retrieve a text description of return values, pass the return value to the mciGetErrorString
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.