|
Using a Callback Function to Manage Buffered Playback
You can define your own callback function to manage buffered playback of MIDI
output devices. The callback function is documented as MidiOutProc.
The following messages can be sent to the wMsg parameter of the MidiOutProc callback function.
These messages are similar to those sent to window procedure functions, but
the parameters are different. A handle of the open MIDI device is passed as a
parameter to the callback function, along with the doubleword of instance data
passed by using midiOutOpen.
After the driver is finished with a data block, you can clean up and free the
data block. Because of the suggested restrictions on callback functions, it is
better not to do this from within the callback function.
Related Links
Software for Delphi and C++ Builder developers
Software for Visual Studio .NET developers
Software for Visual Basic 6 developers
Delphi Tips&Tricks
MegaDetailed.NET
More Online Helps
Win32 Programmer's Reference (win32.hlp)
OLE Programmer's Reference (ole.hlp)
Microsoft Windows Pen API Programmer's Reference (penapi.hlp)
Microsoft Windows Sockets 2 Reference (sock2.hlp)
Microsoft Windows Telephony API (TAPI) Programmer's Reference (tapi.hlp)
Unix Manual Pages
|