mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-12-22 08:56:52 -05:00
volume work
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@42 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
e31bac0257
commit
d571be6f51
12 changed files with 203 additions and 35 deletions
|
|
@ -4,6 +4,7 @@
|
|||
|
||||
#include "sinkinput.h"
|
||||
#include "strbuf.h"
|
||||
#include "sample-util.h"
|
||||
|
||||
struct sink_input* sink_input_new(struct sink *s, struct pa_sample_spec *spec, const char *name) {
|
||||
struct sink_input *i;
|
||||
|
|
@ -22,7 +23,7 @@ struct sink_input* sink_input_new(struct sink *s, struct pa_sample_spec *spec, c
|
|||
i->get_latency = NULL;
|
||||
i->userdata = NULL;
|
||||
|
||||
i->volume = 0xFF;
|
||||
i->volume = VOLUME_NORM;
|
||||
|
||||
assert(s->core);
|
||||
r = idxset_put(s->core->sink_inputs, i, &i->index);
|
||||
|
|
@ -64,7 +65,7 @@ char *sink_input_list_to_string(struct core *c) {
|
|||
|
||||
for (i = idxset_first(c->sink_inputs, &index); i; i = idxset_next(c->sink_inputs, &index)) {
|
||||
assert(i->sink);
|
||||
strbuf_printf(s, " index: %u, name: <%s>, sink: <%u>; volume: <0x%02x>, latency: <%u usec>\n",
|
||||
strbuf_printf(s, " index: %u, name: <%s>, sink: <%u>; volume: <0x%04x>, latency: <%u usec>\n",
|
||||
i->index,
|
||||
i->name,
|
||||
i->sink->index,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue