mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-29 05:40:23 -04:00
introspect: Get formats for sources
This gets the list of supported formats for a source in pa_context_get_source_info*(). Also prints these in 'pactl list'.
This commit is contained in:
parent
5d35375aa7
commit
fdf3a08814
5 changed files with 82 additions and 18 deletions
|
|
@ -310,6 +310,8 @@ typedef struct pa_source_info {
|
|||
uint32_t n_ports; /**< Number of entries in port array \since 0.9.16 */
|
||||
pa_source_port_info** ports; /**< Array of available ports, or NULL. Array is terminated by an entry set to NULL. The number of entries is stored in n_ports \since 0.9.16 */
|
||||
pa_source_port_info* active_port; /**< Pointer to active port in the array, or NULL \since 0.9.16 */
|
||||
uint8_t n_formats; /**< Number of formats supported by the source. \since 1.0 */
|
||||
pa_format_info **formats; /**< Array of formats supported by the source. \since 1.0 */
|
||||
} pa_source_info;
|
||||
|
||||
/** Callback prototype for pa_context_get_source_info_by_name() and friends */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue