mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-29 05:40:23 -04:00
export card information for sinks/sources and number of sinks/sources a profile would create to clients
This commit is contained in:
parent
7b8bed3e28
commit
6db307360b
3 changed files with 17 additions and 3 deletions
|
|
@ -215,6 +215,7 @@ typedef struct pa_sink_info {
|
|||
pa_volume_t base_volume; /**< Some kind of "base" volume that refers to unamplified/unattenuated volume in the context of the output device. \since 0.9.15 */
|
||||
pa_sink_state_t state; /**< State \since 0.9.15 */
|
||||
uint32_t n_volume_steps; /**< Number of volume steps for sinks which do not support arbitrary volumes. \since 0.9.15 */
|
||||
uint32_t card; /**< Card index, or PA_INVALID_INDEX. \since 0.9.15 */
|
||||
} pa_sink_info;
|
||||
|
||||
/** Callback prototype for pa_context_get_sink_info_by_name() and friends */
|
||||
|
|
@ -273,6 +274,7 @@ typedef struct pa_source_info {
|
|||
pa_volume_t base_volume; /**< Some kind of "base" volume that refers to unamplified/unattenuated volume in the context of the input device. \since 0.9.15 */
|
||||
pa_source_state_t state; /**< State \since 0.9.15 */
|
||||
uint32_t n_volume_steps; /**< Number of volume steps for sources which do not support arbitrary volumes. \since 0.9.15 */
|
||||
uint32_t card; /**< Card index, or PA_INVALID_INDEX. \since 0.9.15 */
|
||||
} pa_source_info;
|
||||
|
||||
/** Callback prototype for pa_context_get_source_info_by_name() and friends */
|
||||
|
|
@ -396,6 +398,8 @@ pa_operation* pa_context_kill_client(pa_context *c, uint32_t idx, pa_context_suc
|
|||
typedef struct pa_card_profile_info {
|
||||
const char *name; /**< Name of this profile */
|
||||
const char *description; /**< Description of this profile */
|
||||
uint32_t n_sinks; /**< Number of sinks this profile would create */
|
||||
uint32_t n_sources; /**< Number of sources this profile would create */
|
||||
} pa_card_profile_info;
|
||||
|
||||
/** Stores information about cards. Please note that this structure
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue