Returns the default MIDI 1.0 backend to use for the target OS.
| 55 | { |
| 56 | //! Returns the default MIDI 1.0 backend to use for the target OS. |
| 57 | inline constexpr libremidi::API default_api() noexcept |
| 58 | { |
| 59 | #if defined(__APPLE__) |
| 60 | return API::COREMIDI; |
| 61 | #elif defined(_WIN32) |
| 62 | return API::WINDOWS_MM; |
| 63 | #elif defined(LIBREMIDI_ALSA) |
| 64 | return API::ALSA_SEQ; |
| 65 | #elif defined(__emscripten__) |
| 66 | return API::EMSCRIPTEN_WEBMIDI; |
| 67 | #elif defined(LIBREMIDI_ANDROID) |
| 68 | return API::ANDROID_AMIDI; |
| 69 | #else |
| 70 | return API::DUMMY; |
| 71 | #endif |
| 72 | } |
| 73 | } |
| 74 | |
| 75 | namespace midi2 |
no outgoing calls
no test coverage detected