#pragma once #include #include #include #include #include #include namespace libremidi::alsa_raw_ump { struct backend { using midi_in = midi_in_impl; using midi_out = midi_out_impl; using midi_observer = observer_impl; using midi_in_configuration = alsa_raw_ump::input_configuration; using midi_out_configuration = alsa_raw_ump::output_configuration; using midi_observer_configuration = alsa_raw_ump::observer_configuration; static const constexpr auto API = libremidi::API::ALSA_RAW_UMP; static const constexpr std::string_view name = "alsa_raw_ump"; static const constexpr std::string_view display_name = "ALSA (raw UMP)"; static inline bool available() noexcept { static const libasound& snd = libasound::instance(); return snd.available && snd.rawmidi.available && snd.ump.available; } }; }