#define DEFAULT_FIFO_NAME "/tmp/music.input"
#define DEFAULT_SOURCE_NAME "fifo_input"
+#define PA_TYPEID_PIPE PA_TYPEID_MAKE('P', 'I', 'P', 'E')
+
struct userdata {
struct pa_core *core;
u->filename = pa_xstrdup(p);
u->core = c;
- if (!(u->source = pa_source_new(c, pa_modargs_get_value(ma, "source_name", DEFAULT_SOURCE_NAME), 0, &ss))) {
+ if (!(u->source = pa_source_new(c, PA_TYPEID_PIPE, pa_modargs_get_value(ma, "source_name", DEFAULT_SOURCE_NAME), 0, &ss))) {
pa_log(__FILE__": failed to create source.\n");
goto fail;
}