summaryrefslogtreecommitdiffstats
path: root/polyp/module-sine.c
diff options
context:
space:
mode:
Diffstat (limited to 'polyp/module-sine.c')
-rw-r--r--polyp/module-sine.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/polyp/module-sine.c b/polyp/module-sine.c
index c531386a..529c061a 100644
--- a/polyp/module-sine.c
+++ b/polyp/module-sine.c
@@ -40,8 +40,6 @@ 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 {
pa_core *core;
pa_module *module;
@@ -142,7 +140,7 @@ int pa__init(pa_core *c, 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, PA_TYPEID_SINE, t, &ss, 0, -1)))
+ if (!(u->sink_input = pa_sink_input_new(sink, __FILE__, t, &ss, NULL, 0, -1)))
goto fail;
u->sink_input->peek = sink_input_peek;