]> code.delx.au - pulseaudio/blobdiff - src/module-protocol-stub.c
add documentation
[pulseaudio] / src / module-protocol-stub.c
index f9ed62b8e28a48404e1a4bff66664a238865add2..3ce18c3159486ec1aa239b826cb433fac9779377 100644 (file)
@@ -1,3 +1,28 @@
+/* $Id$ */
+
+/***
+  This file is part of polypaudio.
+  polypaudio is free software; you can redistribute it and/or modify
+  it under the terms of the GNU General Public License as published
+  by the Free Software Foundation; either version 2 of the License,
+  or (at your option) any later version.
+  polypaudio is distributed in the hope that it will be useful, but
+  WITHOUT ANY WARRANTY; without even the implied warranty of
+  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+  General Public License for more details.
+  You should have received a copy of the GNU General Public License
+  along with polypaudio; if not, write to the Free Software
+  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
+  USA.
+***/
+
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include <string.h>
 #include <errno.h>
 #include <stdio.h>
@@ -37,7 +62,7 @@
     #else
       #ifdef USE_PROTOCOL_ESOUND
         #include "protocol-esound.h"
-        #include "esound-spec.h"
+        #include "esound.h"
         #define protocol_new pa_protocol_esound_new
         #define protocol_free pa_protocol_esound_free
         #define IPV4_PORT ESD_DEFAULT_PORT
@@ -64,7 +89,7 @@ static const char* const valid_modargs[] = {
 static struct pa_socket_server *create_socket_server(struct pa_core *c, struct pa_modargs *ma) {
     struct pa_socket_server *s;
 #ifdef USE_TCP_SOCKETS
-    uint32_t loopback = 0, port = IPV4_PORT;
+    uint32_t loopback = 1, port = IPV4_PORT;
 
     if (pa_modargs_get_value_u32(ma, "loopback", &loopback) < 0) {
         fprintf(stderr, "loopback= expects a numerical argument.\n");