这一组函数你能玩转就没问题。摘自MSDN
引用MMSystem单元:
打开一个流:
MMRESULT midiStreamOpen(
LPHMIDISTRM lphStream,
LPUINT puDeviceID,
DWORD cMidi,
DWORD_PTR dwCallback,
DWORD_PTR dwInstance,
DWORD fdwOpen
);
播放一个流:
MMRESULT midiStreamOut(
HMIDISTRM hMidiStream,
LPMIDIHDR lpMidiHdr,
UINT cbMidiHdr
);
关闭一个流:
MMRESULT midiStreamClose(
HMIDISTRM hStream
);