2024-10-09 02:01:23 +02:00
|
|
|
#pragma once
|
|
|
|
|
#include <libremidi/backends/alsa_raw/config.hpp>
|
|
|
|
|
|
2025-06-13 19:16:35 +02:00
|
|
|
#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;
|
|
|
|
|
};
|
|
|
|
|
|
2025-06-13 19:16:35 +02:00
|
|
|
struct observer_configuration : public alsa_raw_observer_configuration
|
2024-10-09 02:01:23 +02:00
|
|
|
{
|
|
|
|
|
};
|
|
|
|
|
}
|