WinRT/C++ - Concurrent MIDI / BLE connection

Daniel Gretarsson 21 Reputation points
2020-10-05T11:49:15.027+00:00

Hey!

My team has been struggling with a pretty strange issue while using the WinRT/C++ APIs for Windows to connect to both a MIDI port and receive BLE notifications through a proprietary service on the same device.

The WinRT/C++ library itself is pretty nice and provides easy and modern C++ interfaces to access the managed Windows runtime classes. I've even ported the JUCE WinRT MIDI implementation on my JUCE fork to use WinRT/C++ (which is now recommended by Microsoft over the older WRL/ComPtr based approach). I got rid of about 400 LOC and there is probably still room for improvement.

That being said, we've been struggling with a pretty strange issue for the past weeks and we'd love some insight. I've pushed a sample repo to Github. The readme goes through the problem in detail. We are at quite a standstill in our project and we need an acceptable solution.

Is there any reason that creating both a MidiInPort and a BluetoothLEDevice for the same device should cause these issues? From the fact that this procedure for a single device works fine, I don't understand where this limitation might come from.

Best,
Daniel

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
38,780 questions
0 comments No comments
{count} vote

1 answer

Sort by: Most helpful
  1. Roy Li - MSFT 33,001 Reputation points Microsoft Vendor
    2020-10-06T05:49:19.273+00:00

    Hello,

    Welcome to Microsoft Q&A!

    Currently, Microsoft Q&A supports the products listed over here: supported topics (more to be added later on).

    Your question is related to a third-party library. Due to our policy, questions related to third-party libraries are not supported in Microsoft Q&A. You could ask questions about the third-party library in their Github.

    Thank you.


    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.