summaryrefslogtreecommitdiffstats
path: root/polyp/module-sine.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-sine.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-sine.c')
-rw-r--r--polyp/module-sine.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/polyp/module-sine.c b/polyp/module-sine.c
index 83414821..d8f7e4ef 100644
--- a/polyp/module-sine.c
+++ b/polyp/module-sine.c
@@ -40,6 +40,8 @@ PA_MODULE_DESCRIPTION("Sine wave generator")
PA_MODULE_USAGE("sink=<sink to connect to> frequency=<frequency in Hz>")
PA_MODULE_VERSION(PACKAGE_VERSION)
+#define PA_TYPEID_SINE PA_TYPEID_MAKE('S', 'I', 'N', 'E')
+
struct userdata {
struct pa_core *core;
struct pa_module *module;
@@ -140,7 +142,7 @@ int pa__init(struct pa_core *c, struct pa_module*m) {
calc_sine(u->memblock->data, u->memblock->length, frequency);
snprintf(t, sizeof(t), "Sine Generator at %u Hz", frequency);
- if (!(u->sink_input = pa_sink_input_new(sink, t, &ss, 0, -1)))
+ if (!(u->sink_input = pa_sink_input_new(sink, PA_TYPEID_SINE, t, &ss, 0, -1)))
goto fail;
u->sink_input->peek = sink_input_peek;