Create virual MIDI port fails on iOS, Mac and Windows - is m code wrong?


i try to create virtual MIDI ports but i get a nullptr back on each platform.

Here is my snipped:

        MidiOutput* midi_port = MidiOutput::createNewDevice( "MIDI OUT" );
        if( midi_port )
           // never true!

I have tried this on Mac, iOS and Linux - what do i wrong?


Surely the obvious thing to do is to step into it in your debugger and watch what happens?

It was an stupid error in my code.

Thanks for spend your time!