René,

does it work with Pm_Abort or Pm_Close ?

/*
    Pm_Abort() terminates outgoing messages immediately
    The caller should immediately close the output port;
    this call may result in transmission of a partial midi message.
    There is no abort for Midi input because the user can simply
    ignore messages in the buffer and close an input device at
    any time.
 */


Pm_Close is not enough to enable the re-open of the input stream and Pm_Abort() is dedicated to output port



On Wed, May 5, 2010 at 1:45 PM, nico <[email protected] <mailto:[email protected]>> wrote:

    hi,
    as i'm simple-minded, sometimes, i forget to plug my midi device
    when i
    run my software....
    so i'm writing a routine to close the midiIn stream and re-open it.

    it only works if i call Pm_Terminate();
    but with this call, i guess it also stops the midi output...

    is there's a way to only close the desire (In/Out) midi stream?

    best regards,
    nicolas
    _______________________________________________
    media_api mailing list
    [email protected] <mailto:[email protected]>
    http://lists.create.ucsb.edu/mailman/listinfo/media_api


_______________________________________________
media_api mailing list
[email protected]
http://lists.create.ucsb.edu/mailman/listinfo/media_api

Reply via email to