From: Rencie on 3 Sep 2005 01:48 I will, thank you.
From: Rencie on 3 Sep 2005 12:51 Well, I tried it and it worked. What about using MMControl? How can I repeat a song using MMControl?
From: MikeD on 3 Sep 2005 17:09 "Rencie" <Rencie(a)discussions.microsoft.com> wrote in message news:5E3558F4-BDB4-437C-847B-46FD300DD674(a)microsoft.com... > Well, I tried it and it worked. > What about using MMControl? How can I repeat a song using MMControl? I don't know. I haven't used that control in years (probably pre-VB3). However, in just looking at its event list, I see a Done event and a PlayCompleted event. I'd investigate those if I were you. Is there a particular reason you want to use the MCI Control? It sounds as if you're just playing the midi for background music. If that's the case, I don't know why you'd need (or want) to use the control. -- Mike Microsoft MVP Visual Basic
From: Rencie on 3 Sep 2005 21:13 Well, honestly, I was so thankful to see so many solutions (from you guys) to my "playing the midi file" problem. Really, there is more than one solution to a problem. I thought that the control is the only way to play a sound (either background sound, effect, music, etc.). I am so grateful to you guys for teaching me MCI and sndPlaySound. =)
From: Martin Walke on 5 Sep 2005 04:54
Rencie, I apologise for my 'faux pas'. I should have know that sndPlaySound wouldn't have played midi files. Looks like the other guys have set you on the right track tho'. I can give you code for using the MMControl. It's a lot less than Mike's solution as there's a method that checks the position of the played file and you can set the callback interval to as low as 1ms. Let me know if you want it. Martin "Rencie" <Rencie(a)discussions.microsoft.com> wrote in message news:1AF19BBA-D036-45E8-B18F-C48B8925747B(a)microsoft.com... > Well, honestly, I was so thankful to see so many solutions (from you guys) > to > my "playing the midi file" problem. Really, there is more than one > solution > to a problem. I thought that the control is the only way to play a sound > (either background sound, effect, music, etc.). > > I am so grateful to you guys for teaching me MCI and sndPlaySound. > =) |