MCPcopy Create free account
hub / github.com/celtera/libremidi / default_api

Function default_api

include/libremidi/api.hpp:57–72  ·  view source on GitHub ↗

Returns the default MIDI 1.0 backend to use for the target OS.

Source from the content-addressed store, hash-verified

55{
56//! Returns the default MIDI 1.0 backend to use for the target OS.
57inline 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
75namespace midi2

Callers 6

midi_out.cppFile · 0.85
midi_in.cppFile · 0.85
in_default_portFunction · 0.85
out_default_portFunction · 0.85
client.hppFile · 0.85
libremidi.cppFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected