2024-10-09 02:01:23 +02:00
|
|
|
#pragma once
|
|
|
|
|
#include <libremidi/config.hpp>
|
|
|
|
|
#include <libremidi/error.hpp>
|
|
|
|
|
#include <libremidi/input_configuration.hpp>
|
|
|
|
|
|
2026-06-23 00:05:41 +02:00
|
|
|
NAMESPACE_LIBREMIDI
|
2024-10-09 02:01:23 +02:00
|
|
|
{
|
|
|
|
|
struct output_configuration
|
|
|
|
|
{
|
|
|
|
|
//! Set an error callback function to be invoked when an error has occured.
|
|
|
|
|
/*!
|
|
|
|
|
The callback function will be called whenever an error has occured. It is
|
|
|
|
|
best to set the error callback function before opening a port.
|
|
|
|
|
*/
|
|
|
|
|
midi_error_callback on_error{};
|
2024-10-28 19:24:18 +01:00
|
|
|
midi_warning_callback on_warning{};
|
2024-10-09 02:01:23 +02:00
|
|
|
|
|
|
|
|
//! Timestamp mode for the timestamps passed to schedule_message
|
|
|
|
|
uint32_t timestamps : 3 = timestamp_mode::Absolute;
|
|
|
|
|
};
|
|
|
|
|
}
|