[polypaudio-commits] r470 - /trunk/polyp/module-waveout.c

svnmailer-noreply at 0pointer.de svnmailer-noreply at 0pointer.de
Mon Jan 30 04:58:55 PST 2006


Author: ossman
Date: Mon Jan 30 13:58:53 2006
New Revision: 470

URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=470&root=polypaudio&view=rev
Log:
Fixes for the new infrastructure so that the waveout module compiles.

Modified:
    trunk/polyp/module-waveout.c

Modified: trunk/polyp/module-waveout.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/polyp/module-waveout.c?rev=470&root=polypaudio&r1=469&r2=470&view=diff
==============================================================================
--- trunk/polyp/module-waveout.c (original)
+++ trunk/polyp/module-waveout.c Mon Jan 30 13:58:53 2006
@@ -43,8 +43,6 @@
 PA_MODULE_VERSION(PACKAGE_VERSION)
 PA_MODULE_USAGE("sink_name=<name for the sink> source_name=<name for the source> 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_WAVEOUT PA_TYPEID_MAKE('W', 'A', 'V', 'E')
-
 #define DEFAULT_SINK_NAME "wave_output"
 #define DEFAULT_SOURCE_NAME "wave_input"
 
@@ -442,7 +440,7 @@
     InitializeCriticalSection(&u->crit);
 
     if (hwi != INVALID_HANDLE_VALUE) {
-        u->source = pa_source_new(c, PA_TYPEID_WAVEOUT, pa_modargs_get_value(ma, "source_name", DEFAULT_SOURCE_NAME), 0, &ss);
+        u->source = pa_source_new(c, __FILE__, pa_modargs_get_value(ma, "source_name", DEFAULT_SOURCE_NAME), 0, &ss, NULL);
         assert(u->source);
         u->source->userdata = u;
         u->source->notify = notify_source_cb;
@@ -453,7 +451,7 @@
         u->source = NULL;
 
     if (hwo != INVALID_HANDLE_VALUE) {
-        u->sink = pa_sink_new(c, PA_TYPEID_WAVEOUT, pa_modargs_get_value(ma, "sink_name", DEFAULT_SINK_NAME), 0, &ss);
+        u->sink = pa_sink_new(c, __FILE__, pa_modargs_get_value(ma, "sink_name", DEFAULT_SINK_NAME), 0, &ss, NULL);
         assert(u->sink);
         u->sink->notify = notify_sink_cb;
         u->sink->get_latency = sink_get_latency_cb;




More information about the pulseaudio-commits mailing list