2024-10-09 02:01:23 +02:00
|
|
|
#pragma once
|
|
|
|
|
#include <libremidi/config.hpp>
|
|
|
|
|
|
|
|
|
|
#include <cstdint>
|
|
|
|
|
#include <functional>
|
|
|
|
|
#include <optional>
|
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
|
|
#if defined(__APPLE__)
|
|
|
|
|
#if __LP64__
|
|
|
|
|
typedef unsigned int UInt32;
|
|
|
|
|
#else
|
|
|
|
|
typedef unsigned long UInt32;
|
|
|
|
|
#endif
|
|
|
|
|
typedef UInt32 MIDIObjectRef;
|
|
|
|
|
typedef MIDIObjectRef MIDIClientRef;
|
|
|
|
|
#else
|
|
|
|
|
using MIDIClientRef = uint32_t;
|
2024-10-28 19:24:18 +01:00
|
|
|
using MIDIObjectRef = uint32_t;
|
2024-10-09 02:01:23 +02:00
|
|
|
#endif
|
2026-06-23 00:05:41 +02:00
|
|
|
NAMESPACE_LIBREMIDI
|
2024-10-09 02:01:23 +02:00
|
|
|
{
|
|
|
|
|
|
|
|
|
|
struct coremidi_input_configuration
|
|
|
|
|
{
|
|
|
|
|
std::string client_name = "libremidi client";
|
|
|
|
|
std::optional<MIDIClientRef> context{};
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
struct coremidi_output_configuration
|
|
|
|
|
{
|
|
|
|
|
std::string client_name = "libremidi client";
|
|
|
|
|
std::optional<MIDIClientRef> context{};
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
struct coremidi_observer_configuration
|
|
|
|
|
{
|
|
|
|
|
std::string client_name = "libremidi client";
|
|
|
|
|
std::function<void(MIDIClientRef)> on_create_context{};
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
}
|