2024-10-09 02:01:23 +02:00
|
|
|
#pragma once
|
|
|
|
|
#include <libremidi/config.hpp>
|
|
|
|
|
|
2026-06-23 00:05:41 +02:00
|
|
|
#include <string>
|
|
|
|
|
|
|
|
|
|
#if !defined(LIBREMIDI_MODULE_BUILD) || !defined(_WIN32)
|
|
|
|
|
namespace winrt::Microsoft::Windows::Devices::Midi2
|
|
|
|
|
{
|
|
|
|
|
struct MidiSession;
|
|
|
|
|
struct MidiEndpointDeviceInformation;
|
|
|
|
|
struct MidiEndpointConnection;
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
// TODO allow to share midi session and endpoints
|
|
|
|
|
NAMESPACE_LIBREMIDI::winmidi
|
2024-10-09 02:01:23 +02:00
|
|
|
{
|
|
|
|
|
|
|
|
|
|
struct input_configuration
|
|
|
|
|
{
|
2026-06-23 00:05:41 +02:00
|
|
|
std::string client_name = "libremidi input";
|
|
|
|
|
winrt::Microsoft::Windows::Devices::Midi2::MidiSession* context{};
|
2024-10-09 02:01:23 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
struct output_configuration
|
|
|
|
|
{
|
2026-06-23 00:05:41 +02:00
|
|
|
std::string client_name = "libremidi output";
|
|
|
|
|
winrt::Microsoft::Windows::Devices::Midi2::MidiSession* context{};
|
2024-10-09 02:01:23 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
struct observer_configuration
|
|
|
|
|
{
|
2026-06-23 00:05:41 +02:00
|
|
|
std::string client_name = "libremidi observer";
|
2024-10-09 02:01:23 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
}
|