Aug 19, 2012 at 1:08am UTC
How to do it? I want it to loop it forever. Just that. Loops and loops. But to still play it in the background, obviously!
Last edited on Aug 19, 2012 at 1:12am UTC
Aug 19, 2012 at 11:08am UTC
It should just be as simple as adding the "repeat" flag to your "play" command. But it doesn't work for me for some reason. :-(
But I remember it used to, and there are plenty of examples of this use on the web, inc.
How to Perform Auto Repeat as Media Player Does
http://support.microsoft.com/kb/124185
mciSendString("play mov notify repeat", NULL, 0, hWnd);
I just mis-assumed it'd still work!
If the repeat flag doesn't work for you, it might mean you have to ove to a different API.
Andy
See MSDN for further information:
play command
http://msdn.microsoft.com/en-us/library/windows/desktop/dd743667%28v=vs.85%29.aspx
Last edited on Aug 19, 2012 at 11:17am UTC
Aug 19, 2012 at 5:10pm UTC
That's awesome! Thanks!
So if i write:
mciSendString("play C:\\Sound.mp3 repeat",0,0,0);
It should work? Or is it
mciSendString("play repeat C:\\Sound.mp3",0,0,0);
PD: Is it possible to change the volume? I don't need that, but it would be something interesting to know.
Aug 25, 2012 at 12:23pm UTC
Last edited on Aug 25, 2012 at 12:23pm UTC