mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-03 09:01:50 -05:00
new configuration subsystem
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@210 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
07d563d6c3
commit
63b35d002a
23 changed files with 626 additions and 231 deletions
|
|
@ -217,7 +217,7 @@ static void create_stream(struct pa_stream *s, const char *dev, const struct pa_
|
|||
assert(s && s->ref >= 1 && s->state == PA_STREAM_DISCONNECTED);
|
||||
|
||||
pa_stream_ref(s);
|
||||
|
||||
|
||||
if (attr)
|
||||
s->buffer_attr = *attr;
|
||||
else {
|
||||
|
|
@ -235,9 +235,9 @@ static void create_stream(struct pa_stream *s, const char *dev, const struct pa_
|
|||
|
||||
if (!dev) {
|
||||
if (s->direction == PA_STREAM_PLAYBACK)
|
||||
dev = getenv(ENV_DEFAULT_SINK);
|
||||
dev = s->context->conf->default_sink;
|
||||
else
|
||||
dev = getenv(ENV_DEFAULT_SOURCE);
|
||||
dev = s->context->conf->default_source;
|
||||
}
|
||||
|
||||
pa_tagstruct_putu32(t, s->direction == PA_STREAM_PLAYBACK ? PA_COMMAND_CREATE_PLAYBACK_STREAM : PA_COMMAND_CREATE_RECORD_STREAM);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue