DrkPaladin
Programmer
How would I loop a *.mp3 file wih MCI???
This is my code:
//m_Forever is a Variable type HWND
m_Forever = NULL;
if (m_Forever == NULL)
{
m_Forever = MCIWndCreate(m_hWnd, AfxGetInstanceHandle(),
MCIWNDF_NOTIFYSIZE | MCIWNDF_NOERRORDLG |
WS_CHILD, NULL);
if (m_Forever != NULL)
{
//Open
MCIWndOpen(m_Forever, "res\\Audio\\Forever Rachel.mid", 0);
//Play
MCIWndPlay(m_Forever);
CRect rc;
::GetWindowRect(m_Forever, rc);
}
}
Thanks.
This is my code:
//m_Forever is a Variable type HWND
m_Forever = NULL;
if (m_Forever == NULL)
{
m_Forever = MCIWndCreate(m_hWnd, AfxGetInstanceHandle(),
MCIWNDF_NOTIFYSIZE | MCIWNDF_NOERRORDLG |
WS_CHILD, NULL);
if (m_Forever != NULL)
{
//Open
MCIWndOpen(m_Forever, "res\\Audio\\Forever Rachel.mid", 0);
//Play
MCIWndPlay(m_Forever);
CRect rc;
::GetWindowRect(m_Forever, rc);
}
}
Thanks.