Mega Search
23.2 Million


Sign Up

Make a donation  
Pause control loop  
News Group: embarcadero.public.delphi.multimedia

I am attempting to write a MIDI file jukebox using Frans Bouwmans TMidiPlayer2 component. Currently I am using a "for" loop to iterate through a list of MIDI files contained in a string grid. The problem is that the program moves through the loop without waiting for each MIDI file to finish playing.

Am I using the right control loop for this task? If so, is there some way to pause the loop until each MIDI file has finished playing?

Vote for best question.
Score: 0  # Vote:  0
Date Posted: 4-Jan-2014, at 4:28 PM EST
From: Barry Andersson