diff options
author | Lennart Poettering <lennart@poettering.net> | 2004-12-12 22:58:53 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2004-12-12 22:58:53 +0000 |
commit | e02be6c15beddec976220bce2ee1a68520286c01 (patch) | |
tree | da9cfdfd7a254fa7e8e21b1ef29456b852dbc133 /polyp/sink.c | |
parent | 9a01cf44f09e92e14a720f4f531e943a50f26b72 (diff) |
* fix include file names in installed header files
* add browsing API
* add new tool pabrowse
* add typeid subsystem
* bump API version
* split off random.c
* add an identification cookie
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@320 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'polyp/sink.c')
-rw-r--r-- | polyp/sink.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/polyp/sink.c b/polyp/sink.c index 3d20884b..481e5cf7 100644 --- a/polyp/sink.c +++ b/polyp/sink.c @@ -39,7 +39,7 @@ #define MAX_MIX_CHANNELS 32 -struct pa_sink* pa_sink_new(struct pa_core *core, const char *name, int fail, const struct pa_sample_spec *spec) { +struct pa_sink* pa_sink_new(struct pa_core *core, pa_typeid_t typeid, const char *name, int fail, const struct pa_sample_spec *spec) { struct pa_sink *s; char *n = NULL; char st[256]; @@ -55,6 +55,7 @@ struct pa_sink* pa_sink_new(struct pa_core *core, const char *name, int fail, co s->name = pa_xstrdup(name); s->description = NULL; + s->typeid = typeid; s->ref = 1; s->state = PA_SINK_RUNNING; @@ -65,7 +66,7 @@ struct pa_sink* pa_sink_new(struct pa_core *core, const char *name, int fail, co s->inputs = pa_idxset_new(NULL, NULL); n = pa_sprintf_malloc("%s_monitor", name); - s->monitor_source = pa_source_new(core, n, 0, spec); + s->monitor_source = pa_source_new(core, typeid, n, 0, spec); assert(s->monitor_source); pa_xfree(n); s->monitor_source->monitor_of = s; |