diff options
author | ben <benjaminfranzke@googlemail.com> | 2010-07-13 16:57:16 +0200 |
---|---|---|
committer | ben <benjaminfranzke@googlemail.com> | 2010-07-13 16:57:16 +0200 |
commit | 28c43b727c113d170e8a55b4b060e409665dd9d7 (patch) | |
tree | e076cb7ec988a4ecb2c17aa74acd22de963c9a1e /src/pa-sink-ctl.c | |
parent | 66e647d0254de74ee44535aba4d8e6d99f7031b9 (diff) | |
download | pa-sink-ctl-28c43b727c113d170e8a55b4b060e409665dd9d7.tar.gz pa-sink-ctl-28c43b727c113d170e8a55b4b060e409665dd9d7.tar.bz2 pa-sink-ctl-28c43b727c113d170e8a55b4b060e409665dd9d7.zip |
add volume output for sinks
Diffstat (limited to 'src/pa-sink-ctl.c')
-rw-r--r-- | src/pa-sink-ctl.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/pa-sink-ctl.c b/src/pa-sink-ctl.c index fce5a84..1417064 100644 --- a/src/pa-sink-ctl.c +++ b/src/pa-sink-ctl.c @@ -111,6 +111,8 @@ void get_sink_info_callback(pa_context *c, const pa_sink_info *i, int is_last, v sink_check(&(sink_list[sink_counter])); sink_list[sink_counter]->index = i->index; sink_list[sink_counter]->mute = i->mute; + sink_list[sink_counter]->vol = pa_cvolume_avg(&i->volume); + sink_list[sink_counter]->channels = i->volume.channels; sink_list[sink_counter]->name = strdup(i->name); ++sink_counter; } |