mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-08 13:29:59 -05:00
introduce new flag that marks sinks/sources which can adjust the latency dynamically
This commit is contained in:
parent
9bca59efc1
commit
44ca897769
8 changed files with 64 additions and 21 deletions
|
|
@ -702,9 +702,13 @@ typedef enum pa_sink_flags {
|
|||
/**< Volume can be translated to dB with pa_sw_volume_to_dB()
|
||||
* \since 0.9.11 */
|
||||
|
||||
PA_SINK_FLAT_VOLUME = 0x0040U
|
||||
PA_SINK_FLAT_VOLUME = 0x0040U,
|
||||
/**< This sink is in flat volume mode, i.e. always the maximum of
|
||||
* the volume of all connected inputs. \since 0.9.15 */
|
||||
|
||||
PA_SINK_DYNAMIC_LATENCY = 0x0080U
|
||||
/**< The latency can be adjusted dynamically depending on the
|
||||
* needs of the connected streams. \since 0.9.15 */
|
||||
} pa_sink_flags_t;
|
||||
|
||||
/** \cond fulldocs */
|
||||
|
|
@ -715,6 +719,7 @@ typedef enum pa_sink_flags {
|
|||
#define PA_SINK_HW_MUTE_CTRL PA_SINK_HW_MUTE_CTRL
|
||||
#define PA_SINK_DECIBEL_VOLUME PA_SINK_DECIBEL_VOLUME
|
||||
#define PA_SINK_FLAT_VOLUME PA_SINK_FLAT_VOLUME
|
||||
#define PA_SINK_DYNAMIC_LATENCY PA_SINK_DYNAMIC_LATENCY
|
||||
/** \endcond */
|
||||
|
||||
/** Sink state. \since 0.9.15 */
|
||||
|
|
@ -780,9 +785,13 @@ typedef enum pa_source_flags {
|
|||
PA_SOURCE_HW_MUTE_CTRL = 0x0010U,
|
||||
/**< Supports hardware mute control \since 0.9.11 */
|
||||
|
||||
PA_SOURCE_DECIBEL_VOLUME = 0x0020U
|
||||
PA_SOURCE_DECIBEL_VOLUME = 0x0020U,
|
||||
/**< Volume can be translated to dB with pa_sw_volume_to_dB()
|
||||
* \since 0.9.11 */
|
||||
|
||||
PA_SOURCE_DYNAMIC_LATENCY = 0x0080U
|
||||
/**< The latency can be adjusted dynamically depending on the
|
||||
* needs of the connected streams. \since 0.9.15 */
|
||||
} pa_source_flags_t;
|
||||
|
||||
/** \cond fulldocs */
|
||||
|
|
@ -792,6 +801,7 @@ typedef enum pa_source_flags {
|
|||
#define PA_SOURCE_NETWORK PA_SOURCE_NETWORK
|
||||
#define PA_SOURCE_HW_MUTE_CTRL PA_SOURCE_HW_MUTE_CTRL
|
||||
#define PA_SOURCE_DECIBEL_VOLUME PA_SOURCE_DECIBEL_VOLUME
|
||||
#define PA_SOURCE_DYNAMIC_LATENCY PA_SOURCE_DYNAMIC_LATENCY
|
||||
/** \endcond */
|
||||
|
||||
/** Source state. \since 0.9.15 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue