pipewire/spa/include/spa/control/control.h
Wim Taymans 3e87aca7a9 spa: Add UMP control type
UMP (universal Midi Packet) is an improved version of transmitting MIDI
messages. It also has support for MIDI 2.0 and is backwards compatible
with MIDI 1.0.
2024-07-29 18:15:57 +02:00

45 lines
957 B
C

/* Simple Plugin API */
/* SPDX-FileCopyrightText: Copyright © 2018 Wim Taymans */
/* SPDX-License-Identifier: MIT */
#ifndef SPA_CONTROL_H
#define SPA_CONTROL_H
#ifdef __cplusplus
extern "C" {
#endif
#include <spa/utils/defs.h>
#include <spa/pod/pod.h>
/** \defgroup spa_control Control
* Control type declarations
*/
/**
* \addtogroup spa_control
* \{
*/
/** Different Control types */
enum spa_control_type {
SPA_CONTROL_Invalid,
SPA_CONTROL_Properties, /**< SPA_TYPE_OBJECT_Props */
SPA_CONTROL_Midi, /**< spa_pod_bytes with raw midi data (deprecated, use SPA_CONTROL_UMP) */
SPA_CONTROL_OSC, /**< spa_pod_bytes with an OSC packet */
SPA_CONTROL_UMP, /**< spa_pod_bytes with raw UMP (universal MIDI packet)
* data. The UMP 32 bit words are stored in native endian
* format. */
_SPA_CONTROL_LAST, /**< not part of ABI */
};
/**
* \}
*/
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif /* SPA_CONTROL_H */