Roger,

On 05/05/10 14:56, Roger Dannenberg wrote:
> Interesting. PortMidi scans devices and builds a device table when you 
> initialize it. There's no mechanism to keep devices open and operating 
> while scanning for new devices. This might be possible to change, but 
> it would take a lot of work. If you are only worried about losing 
> pending output, you should be able to close open devices first, which 
> will delay until output is finished. Then you can reinitialize 
> PortMidi without loss.
my (and only my) interest is not to keep devices open while scanning for 
fresh plugged in devices, but to keep alive the output stream while 
closing/re-opening input/scanning for available devices/connect to the 
desire one

many thanks for your interest,
++
niclas
>
> The PmDefaults program, although written in Java using a PortMidi jni 
> library, illustrates closing PortMidi, scanning for new devices, and 
> restarting within a running application.
>
> -Roger
>
>
> nico 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]
>> 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