BWATERS
asked on
mciSendString notification
VB5
Trying to loop or continuously play MIDI files. I am using the API call rather than the MCI control.
The API parameters can include 'notify' , so how can I trap the notifiy event to determine when the MIDI file has completed?
Is there a better (another) way to loop MIDI files?
Thanks for your help.
Barry
Trying to loop or continuously play MIDI files. I am using the API call rather than the MCI control.
The API parameters can include 'notify' , so how can I trap the notifiy event to determine when the MIDI file has completed?
Is there a better (another) way to loop MIDI files?
Thanks for your help.
Barry
Why not use the MCI control? In the done event you can play it all over again.
ASKER
Thanks for the quick response.
I'd rather not use the MCI control as all I am doing is playing MIDI files and do not want to add 'overhead'. Also, strictly from a programming point of view (and a desire to learn), I find it frustrating that WAV files can be looped easily enough...why not MIDI files.
I'd rather not use the MCI control as all I am doing is playing MIDI files and do not want to add 'overhead'. Also, strictly from a programming point of view (and a desire to learn), I find it frustrating that WAV files can be looped easily enough...why not MIDI files.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Wyatt, thanks for the reponse.
Rather unique...not what I had asked, but acceptable as a solution; higher marks if you had also included a procedure/function that would determine the length (in seconds) of different MIDI files. Your solution assumes the programmer knows the length of the MIDI file being played.n Still a chance to go to the head of the class.
Rather unique...not what I had asked, but acceptable as a solution; higher marks if you had also included a procedure/function that would determine the length (in seconds) of different MIDI files. Your solution assumes the programmer knows the length of the MIDI file being played.n Still a chance to go to the head of the class.
ASKER