STOPMIDI$

Top  Previous  Next

Syntax

STOPMIDI$(pThread as POINTER)

Description

Stops a currently playing stream of notes started with the PLAYMIDI$ command.

Parameters

pThread - Pointer returned by PLAYMIDI$.

Return value

None.

Remarks

For use with the asynchronous mode of PLAYMIDI$. It is safe to call this command even if the stream has already finished playing.

See Also: PLAYMIDI$, Music and Sound commands

Example usage

pThread = PLAYMIDI$("T120 N0 I25 O5 *C2EG;D4EFG*A2O6CE; *C2EG;D4EFG*A2O7CE;", TRUE)
DO:UNTIL INKEY$<> ""
STOPMIDI$(pThread)