mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-02 09:01:48 -05:00
seq: Add UMP support
This patch adds the basic support of UMP on ALSA sequencer API. An extended event type, snd_seq_ump_event_t, is defined. It's compatible with the existing type, snd_seq_event_t, but it has a larger payload of 16 bytes instead of 12 bytes, for holding the full 128bit UMP packet. The new snd_seq_ump_event_t must have the bit SND_SEQ_EVENT_UMP in the event flags. A few new API functions have been added such as snd_seq_ump_event_output() and snd_seq_ump_event_input() for reading/writing this new event object. The support of UMP in the sequencer client is switched by the function snd_seq_client_set_midi_version(). It can switch from the default legacy MIDI to UMP MIDI 1.0 or 2.0 on the fly. The automatic event conversion among UMP and legacy clients can be suppressed via snd_seq_client_set_ump_conversion(). The inquiry of the associated UMP Endpoints and UMP Blocks can be done via snd_seq_get_ump_endpoint_info() and snd_seq_get_ump_block_info(). Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
c40dc19a57
commit
2aefb5c41c
9 changed files with 604 additions and 51 deletions
|
|
@ -156,4 +156,21 @@ ALSA_1.2.10 {
|
|||
@SYMBOL_PREFIX@snd_ctl_ump_next_device;
|
||||
@SYMBOL_PREFIX@snd_ctl_ump_endpoint_info;
|
||||
@SYMBOL_PREFIX@snd_ctl_ump_block_info;
|
||||
@SYMBOL_PREFIX@snd_seq_ump_*;
|
||||
@SYMBOL_PREFIX@snd_seq_client_info_get_midi_version;
|
||||
@SYMBOL_PREFIX@snd_seq_seq_client_info_get_ump_group_enabled;
|
||||
@SYMBOL_PREFIX@snd_seq_seq_client_get_ump_conversion;
|
||||
@SYMBOL_PREFIX@snd_seq_client_info_set_midi_version;
|
||||
@SYMBOL_PREFIX@snd_seq_seq_client_info_set_ump_group_enabled;
|
||||
@SYMBOL_PREFIX@snd_seq_seq_client_set_ump_conversion;
|
||||
@SYMBOL_PREFIX@snd_seq_get_ump_endpoint_info;
|
||||
@SYMBOL_PREFIX@snd_seq_get_ump_block_info;
|
||||
@SYMBOL_PREFIX@snd_seq_set_ump_endpoint_info;
|
||||
@SYMBOL_PREFIX@snd_seq_set_ump_block_info;
|
||||
@SYMBOL_PREFIX@snd_seq_port_info_get_direction;
|
||||
@SYMBOL_PREFIX@snd_seq_port_info_get_ump_group;
|
||||
@SYMBOL_PREFIX@snd_seq_port_info_set_direction;
|
||||
@SYMBOL_PREFIX@snd_seq_port_info_set_ump_group;
|
||||
@SYMBOL_PREFIX@snd_seq_set_client_midi_version;
|
||||
@SYMBOL_PREFIX@snd_seq_set_client_ump_conversion;
|
||||
} ALSA_1.2.9;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue