mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-01 22:58:49 -04:00
seq: Add UMP 1.1 features
Add APIs for groupless message filtering. Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
80e20a1052
commit
77247f51c4
4 changed files with 41 additions and 1 deletions
|
|
@ -159,9 +159,11 @@ ALSA_1.2.10 {
|
|||
@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_client_info_get_ump_groupless_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_client_info_set_ump_groupless_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;
|
||||
|
|
|
|||
|
|
@ -1763,6 +1763,21 @@ int snd_seq_client_info_get_ump_group_enabled(const snd_seq_client_info_t *info,
|
|||
return !(info->group_filter & (1U << group));
|
||||
}
|
||||
|
||||
#define UMP_GROUPLESS_FILTER (1U << 0)
|
||||
|
||||
/**
|
||||
* \brief Get the UMP groupless message handling status
|
||||
* \param info client_info container
|
||||
* \return 1 if UMP groupless messages is processed, 0 if filtered/disabled
|
||||
*
|
||||
* \sa snd_seq_get_client_info()
|
||||
*/
|
||||
int snd_seq_client_info_get_ump_groupless_enabled(const snd_seq_client_info_t *info)
|
||||
{
|
||||
assert(info);
|
||||
return !(info->group_filter & UMP_GROUPLESS_FILTER);
|
||||
}
|
||||
|
||||
/**
|
||||
* \brief Get the automatic conversion mode for UMP
|
||||
* \param info client_info container
|
||||
|
|
@ -1850,6 +1865,23 @@ void snd_seq_client_info_set_ump_group_enabled(snd_seq_client_info_t *info,
|
|||
info->group_filter |= (1U << group);
|
||||
}
|
||||
|
||||
/**
|
||||
* \brief Enable/disable the UMP groupless message handling
|
||||
* \param info client_info container
|
||||
* \param enable enable the UMP groupless messages
|
||||
*
|
||||
* \sa snd_seq_set_client_info(), snd_seq_client_info_get_ump_groupless_enabled()
|
||||
*/
|
||||
void snd_seq_client_info_set_ump_groupless_enabled(snd_seq_client_info_t *info,
|
||||
int enable)
|
||||
{
|
||||
assert(info);
|
||||
if (enable)
|
||||
info->group_filter &= ~UMP_GROUPLESS_FILTER;
|
||||
else
|
||||
info->group_filter |= UMP_GROUPLESS_FILTER;
|
||||
}
|
||||
|
||||
/**
|
||||
* \brief Set the automatic conversion mode for UMP
|
||||
* \param info client_info container
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue