mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2026-05-30 21:38:11 -04:00
rawmidi: clarify no_active_sensing doc: output-only, does not filter input
Fixes: https://github.com/alsa-project/alsa-lib/issues/29 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
d2499b16c6
commit
29aa1a26b9
1 changed files with 7 additions and 3 deletions
|
|
@ -811,11 +811,15 @@ size_t snd_rawmidi_params_get_avail_min(const snd_rawmidi_params_t *params)
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief set no-active-sensing action on snd_rawmidi_close()
|
* \brief control whether an Active Sensing byte is sent on output close
|
||||||
* \param rawmidi RawMidi handle
|
* \param rawmidi RawMidi handle
|
||||||
* \param params pointer to snd_rawmidi_params_t structure
|
* \param params pointer to snd_rawmidi_params_t structure
|
||||||
* \param val value: 0 = enable to send the active sensing message, 1 = disable
|
* \param val 0 = send Active Sensing (0xFE) when the output stream is closed,
|
||||||
|
* 1 = suppress it (default)
|
||||||
* \return 0 on success otherwise a negative error code
|
* \return 0 on success otherwise a negative error code
|
||||||
|
*
|
||||||
|
* This setting applies to the \b output direction only. It does not filter
|
||||||
|
* or suppress incoming Active Sensing messages received on an input stream.
|
||||||
*/
|
*/
|
||||||
#ifndef DOXYGEN
|
#ifndef DOXYGEN
|
||||||
int snd_rawmidi_params_set_no_active_sensing(snd_rawmidi_t *rawmidi ATTRIBUTE_UNUSED, snd_rawmidi_params_t *params, int val)
|
int snd_rawmidi_params_set_no_active_sensing(snd_rawmidi_t *rawmidi ATTRIBUTE_UNUSED, snd_rawmidi_params_t *params, int val)
|
||||||
|
|
@ -831,7 +835,7 @@ int snd_rawmidi_params_set_no_active_sensing(snd_rawmidi_t *rawmidi, snd_rawmidi
|
||||||
/**
|
/**
|
||||||
* \brief get no-active-sensing action status
|
* \brief get no-active-sensing action status
|
||||||
* \param params pointer to snd_rawmidi_params_t structure
|
* \param params pointer to snd_rawmidi_params_t structure
|
||||||
* \return the current status (0 = enable, 1 = disable the active sensing message)
|
* \return 0 if an Active Sensing byte will be sent on output close, 1 if suppressed
|
||||||
*/
|
*/
|
||||||
int snd_rawmidi_params_get_no_active_sensing(const snd_rawmidi_params_t *params)
|
int snd_rawmidi_params_get_no_active_sensing(const snd_rawmidi_params_t *params)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue