aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2012-08-11 21:38:08 -0400
committerDave Reisner <dreisner@archlinux.org>2012-08-11 21:38:08 -0400
commit80f1e0df52b3347da4a42395e7efc4155600e8df (patch)
tree6f86951a2fe836a6d9ff397ee65c190972548252
parentcf792f1c49a1d6fd024d37f430c12c57c0bb03a7 (diff)
downloadmirror-ponymix-80f1e0df52b3347da4a42395e7efc4155600e8df.tar.gz
mirror-ponymix-80f1e0df52b3347da4a42395e7efc4155600e8df.tar.bz2
mirror-ponymix-80f1e0df52b3347da4a42395e7efc4155600e8df.zip
s/populate/&_levels/
give this function a clearer name
-rw-r--r--pulsemix.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/pulsemix.c b/pulsemix.c
index 475da78..96a5520 100644
--- a/pulsemix.c
+++ b/pulsemix.c
@@ -124,7 +124,7 @@ static int xstrtol(const char *str, long *out)
return 0;
}
-static void populate(struct io_t *node)
+static void populate_levels(struct io_t *node)
{
node->volume_percent = (int)(((double)pa_cvolume_avg(&node->volume) * 100)
/ PA_VOLUME_NORM);
@@ -148,7 +148,7 @@ static struct io_t *sink_new(const pa_sink_info *info)
sink->op.setvol = pa_context_set_sink_volume_by_index;
sink->op.setdefault = pa_context_set_default_sink;
- populate(sink);
+ populate_levels(sink);
return sink;
}
@@ -169,7 +169,7 @@ static struct io_t *sink_input_new(const pa_sink_input_info *info)
sink->op.move = pa_context_move_sink_input_by_index;
sink->op.kill = pa_context_kill_sink_input;
- populate(sink);
+ populate_levels(sink);
return sink;
}
@@ -189,7 +189,7 @@ static struct io_t *source_new(const pa_source_info *info)
source->op.setvol = pa_context_set_source_volume_by_index;
source->op.setdefault = pa_context_set_default_source;
- populate(source);
+ populate_levels(source);
return source;
}
@@ -210,7 +210,7 @@ static struct io_t *source_output_new(const pa_source_output_info *info)
source->op.move = pa_context_move_source_output_by_index;
source->op.kill = pa_context_kill_source_output;
- populate(source);
+ populate_levels(source);
return source;
}