Ignore:
Timestamp:
Feb 27, 2001, 10:14:00 PM (24 years ago)
Author:
sandervl
Message:

Added preliminary wavein support

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:31 sandervl Exp $ */
     1/* $Id: midi.cpp,v 1.9 2001-02-27 21:13:59 sandervl Exp $ */
    22
    33/*
     
    10241024
    10251025   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 );
    10291029   MESSAGE msg;
    10301030   msg.ulSourceInstance = stopper;
     
    10321032   msg.ulTrack          = 0;
    10331033   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 );
    10381038
    10391039   // Sleep to let it stop
Note: See TracChangeset for help on using the changeset viewer.