Advertisement

HELP WITH SOUND...

Started by February 13, 2000 05:17 PM
0 comments, last by Smelly 24 years, 7 months ago
what are MCI Commands and How do I use them to play music from cd''s?
MCI commands are multimedia commands that tell various multimedia devices what to do. You call MCI commands with the mciSendCommand() function. You can also send MCI command strings with the mciSendString() function. You can probably look up both functions in your compiler''s help docs.

ex:
mciSendString("open cdaudio", lpszReturnString,
lstrlen(lpszReturnString), NULL);
mciSendString("set cdaudio time format tmsf", lpszReturnString,
lstrlen(lpszReturnString), NULL);
mciSendString("play cdaudio from 6 to 7", lpszReturnString,
lstrlen(lpszReturnString), NULL);
mciSendString("close cdaudio", lpszReturnString,
lstrlen(lpszReturnString), NULL);

This topic is closed to new replies.

Advertisement