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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MCIWnd Loop Music...

Status
Not open for further replies.

DrkPaladin

Programmer
May 18, 2002
33
CA
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top