Files

28 lines
562 B
C++
Raw Permalink Normal View History

2024-10-09 02:01:23 +02:00
#pragma once
#include <libremidi/backends/alsa_raw/config.hpp>
#include <chrono>
#include <functional>
2024-10-09 02:01:23 +02:00
namespace libremidi::alsa_raw_ump
{
struct input_configuration
{
std::function<bool(const manual_poll_parameters&)> manual_poll;
2024-10-28 19:24:18 +01:00
std::chrono::milliseconds poll_period{2};
2024-10-09 02:01:23 +02:00
};
struct output_configuration
{
/**
* For large messages, chunk their content and wait.
* Setting a null optional will disable chunking.
*/
std::optional<chunking_parameters> chunking;
};
struct observer_configuration : public alsa_raw_observer_configuration
2024-10-09 02:01:23 +02:00
{
};
}