mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-29 05:40:23 -04:00
introspect: Get format of sink input
This gets the negotiated format of sink inputs in pa_context_get_sink_input*(). Also prints the format in 'pactl list'.
This commit is contained in:
parent
322980e2e3
commit
7aa84e8208
5 changed files with 16 additions and 2 deletions
|
|
@ -3153,6 +3153,8 @@ static void sink_input_fill_tagstruct(pa_native_connection *c, pa_tagstruct *t,
|
|||
pa_tagstruct_put_boolean(t, has_volume);
|
||||
pa_tagstruct_put_boolean(t, s->volume_writable);
|
||||
}
|
||||
if (c->version >= 21)
|
||||
pa_tagstruct_put_format_info(t, s->format);
|
||||
}
|
||||
|
||||
static void source_output_fill_tagstruct(pa_native_connection *c, pa_tagstruct *t, pa_source_output *s) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue