--- a/src/MusicSrc/MusicDevice.c +++ b/src/MusicSrc/MusicDevice.c @@ -569,6 +569,14 @@ // connected ndev->dev.isOpen = 1; ndev->dev.outputIndex = outputIndex; +#else + // No native MIDI backend implemented for this platform (e.g. Android) - + // report failure so InitDecXMI()'s caller falls back to another device + // instead of treating an unopened device as successfully initialized. + (void)outputIndex; + (void)samplerate; + WARN("NativeMidiInit(): native MIDI is not implemented on this platform"); + return -1; #endif // suppress compiler warnings (void)outputIndex;