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


#1

Hi,

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?

Thanks


#2

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


#3

It was an stupid error in my code.

Thanks for spend your time!