Changeset 5272 for trunk/src/winmm/midi.cpp
- Timestamp:
- Feb 27, 2001, 10:14:00 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/winmm/midi.cpp
r2812 r5272 1 /* $Id: midi.cpp,v 1. 8 2000-02-17 14:09:31sandervl Exp $ */1 /* $Id: midi.cpp,v 1.9 2001-02-27 21:13:59 sandervl Exp $ */ 2 2 3 3 /* … … 1024 1024 1025 1025 MINSTANCE stopper; 1026 (*IRTMIDI->MidiCreateInstance)( IRTMIDI->applicationClass(), &stopper, "stopper", 0 );1027 (*IRTMIDI->MidiEnableInstance)( stopper, MIDI_ENABLE_SEND );1028 (*IRTMIDI->MidiAddLink)( stopper, iAppInstance->instance(), 0, 0 );1026 IRTMIDI->MidiCreateInstance( IRTMIDI->applicationClass(), &stopper, "stopper", 0 ); 1027 IRTMIDI->MidiEnableInstance( stopper, MIDI_ENABLE_SEND ); 1028 IRTMIDI->MidiAddLink( stopper, iAppInstance->instance(), 0, 0 ); 1029 1029 MESSAGE msg; 1030 1030 msg.ulSourceInstance = stopper; … … 1032 1032 msg.ulTrack = 0; 1033 1033 msg.msg.ulMessage = 0xf7fffff0; 1034 (*IRTMIDI->MidiSendMessages)( &msg, 1, 0 );1035 (*IRTMIDI->MidiRemoveLink)( stopper, iAppInstance->instance(), 0, 0 );1036 (*IRTMIDI->MidiDisableInstance)( stopper, MIDI_DISABLE_SEND );1037 (*IRTMIDI->MidiDeleteInstance)( stopper, 0 );1034 IRTMIDI->MidiSendMessages( &msg, 1, 0 ); 1035 IRTMIDI->MidiRemoveLink( stopper, iAppInstance->instance(), 0, 0 ); 1036 IRTMIDI->MidiDisableInstance( stopper, MIDI_DISABLE_SEND ); 1037 IRTMIDI->MidiDeleteInstance( stopper, 0 ); 1038 1038 1039 1039 // Sleep to let it stop
Note:
See TracChangeset
for help on using the changeset viewer.