-
April 26th, 2013, 12:49 PM
#1
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.
LONG WindowProc()
{
switch (msg)
{
case WM_COMMAND:
if (wParam == IDC_PLAY)
{
//A CDA File
SendMessage(m_hwMCI,MCIWNDM_OPENA,0,(LPARAM)&chFile);
SendMessage(m_hwMCI,MCI_SEEK,0,dwStart);
SendMessage(m_hwMCI,MCIWNDM_PLAYTO,0,dwEnd);
break;
}
if (wParam == IDC_CLOSEMCI)
{
SendMessage(m_hwMCI,MCI_CLOSE,0,0);
break;
}
}
}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|