introspect: implement enough to make gnome-control-center work

We can see sources and sink and change the volume/mute of streams
This commit is contained in:
Wim Taymans 2018-10-19 16:57:03 +02:00
parent faccc8d506
commit 01aa9a5960
4 changed files with 76 additions and 21 deletions

View file

@ -793,6 +793,7 @@ static int create_stream(pa_stream_direction_t direction,
s->volume = pa_cvolume_avg(volume) / (float) PA_VOLUME_NORM;
else
s->volume = 1.0;
s->mute = false;
pa_stream_set_state(s, PA_STREAM_CREATING);