summaryrefslogtreecommitdiffstats
path: root/polyp/module-oss.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2004-12-12 22:58:53 +0000
committerLennart Poettering <lennart@poettering.net>2004-12-12 22:58:53 +0000
commite02be6c15beddec976220bce2ee1a68520286c01 (patch)
treeda9cfdfd7a254fa7e8e21b1ef29456b852dbc133 /polyp/module-oss.c
parent9a01cf44f09e92e14a720f4f531e943a50f26b72 (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/module-oss.c')
-rw-r--r--polyp/module-oss.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/polyp/module-oss.c b/polyp/module-oss.c
index fa01876d..67922d82 100644
--- a/polyp/module-oss.c
+++ b/polyp/module-oss.c
@@ -52,6 +52,8 @@ PA_MODULE_DESCRIPTION("OSS Sink/Source")
PA_MODULE_VERSION(PACKAGE_VERSION)
PA_MODULE_USAGE("sink_name=<name for the sink> source_name=<name for the source> device=<OSS device> record=<enable source?> playback=<enable sink?> format=<sample format> channels=<number of channels> rate=<sample rate> fragments=<number of fragments> fragment_size=<fragment size>")
+#define PA_TYPEID_OSS PA_TYPEID_MAKE('O', 'S', 'S', '_')
+
struct userdata {
struct pa_sink *sink;
struct pa_source *source;
@@ -325,7 +327,7 @@ int pa__init(struct pa_core *c, struct pa_module*m) {
}
if (mode != O_WRONLY) {
- u->source = pa_source_new(c, pa_modargs_get_value(ma, "source_name", DEFAULT_SOURCE_NAME), 0, &ss);
+ u->source = pa_source_new(c, PA_TYPEID_OSS, pa_modargs_get_value(ma, "source_name", DEFAULT_SOURCE_NAME), 0, &ss);
assert(u->source);
u->source->userdata = u;
u->source->get_latency = source_get_latency_cb;
@@ -335,7 +337,7 @@ int pa__init(struct pa_core *c, struct pa_module*m) {
u->source = NULL;
if (mode != O_RDONLY) {
- u->sink = pa_sink_new(c, pa_modargs_get_value(ma, "sink_name", DEFAULT_SINK_NAME), 0, &ss);
+ u->sink = pa_sink_new(c, PA_TYPEID_OSS, pa_modargs_get_value(ma, "sink_name", DEFAULT_SINK_NAME), 0, &ss);
assert(u->sink);
u->sink->get_latency = sink_get_latency_cb;
u->sink->userdata = u;