Looping Music

Started by
3 comments, last by jtecin 23 years, 9 months ago
Does anybody know how to loop music using mciSendString? For instance, I would play a song using mciSendString("play song_name", 0, 0, 0); I was wondering what the command is for looping songs. Right now I am just timing how long the song has been playing and when the time is longer than the length of the song I use mciSendString("play song_name from 0", 0, 0, 0); However, I want to add a lot more songs and this way seems inefficient. Thanks in advance.
Advertisement
I''m a novice C++ programmer, so I might be wrong, but I think looping music would be like an ordinary loop.(I''ve never tried because I don''t know the command to insert music.) I''d say to do
this:

while(1)
{
//music commands here
}
That''s the best I can come up with. It''s a loop that keeps on going, no matter what.

Hope I helped,
Supersaiyan
KA...ME...HA...ME...HA!!!
SOrry, I read it wrong, I thought you said C++

sorry
KA...ME...HA...ME...HA!!!
SOrry, I read it wrong, I thought you said C++

sorry
Well, actually I am using C++ but with Windows. Now, if I were to do what you were saying all it would do it keep starting the song over. Also, it would never pass this point in Game_Main(), because it is a never-ending loop. But I appreciate the try.



Masters Software

This topic is closed to new replies.

Advertisement