Jean-Michaël Celerier

Results 652 comments of Jean-Michaël Celerier

> So if everyone is going to implement the same kind of message queue anyway right, my take on this is that if you're building any kind of multimedia app...

note that the code I posted above is unsafe and needs additional care, I'll fix it soon in the example

(code has been fixed in the [example](https://github.com/celtera/libremidi/blob/master/examples/coroutines.cpp))

closing as I think the example gives enough information, feel free to reopen if additional help is needed!

> The operating systems macOS and Windows provide identifiers for this purpose: Do you have some sample code of how to do this ?

Thanks. Now I have to find how I get these device nodes in MS Windows, as right now the code does not use these APIs AFAIK. For macOS it looks...

I'm revisiting this and am wondering: port_information already stores the MIDIObjectRef's UUID so you can get it back in the following way (typing this without access to macOS so likely...

hm but do we know for sure that the index of for (DWORD i = 0; SetupDiEnumDeviceInfo(deviceInfoSet, i, &deviceInfoData); ++i) is the same index than the one used by WinMM...

especially in "borderline" cases where we plug multiple identical MIDI devices which have historically been iffy in winmm