MidiClose

BOOL WINAPI MidiClose
(
	HANDLE hSequence
);

This function opens a previously open or created sequence.

Parameters

Return values

TRUE if the sequence was closed or FALSE if not. The most likely reason for an error is an invalid handle.

Remarks

The sequence must have been opened with MidiOpen or created with MidiCreate before to be closed. It is safe to close a sequence at any time, even if it is playing.

Example

HANDLE Sequence;

// Open the sequence
MidiOpen("test1.mid", DEFAULT_DEVICE, &Sequence);

// Play it
MidiPlay(Sequence);

// Close it anyway
MidiClose(Sequence);

Further information

Released in November 19th, 2003
Updated in April 29th, 2004
Property of Breno de Lima Sarmento
Home page: http://www27.brinkster.com/brels
E-mail: [email protected]
ICQ: 78977999 ()