[Liboss-commit] CVS: liboss/lib esddsp.c,1.19,1.20
Brought to you by:
thesin
|
From: Justin <th...@us...> - 2002-11-14 22:38:47
|
Update of /cvsroot/liboss/liboss/lib
In directory usw-pr-cvs1:/tmp/cvs-serv18657
Modified Files:
esddsp.c
Log Message:
This gets me further in xmms thanks max, now to figure out a better implementation of OSpace and Fragment
Index: esddsp.c
===================================================================
RCS file: /cvsroot/liboss/liboss/lib/esddsp.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -r1.19 -r1.20
--- esddsp.c 7 Nov 2002 23:09:57 -0000 1.19
+++ esddsp.c 14 Nov 2002 22:38:44 -0000 1.20
@@ -95,32 +95,41 @@
{
if (!ident)
{
- /* FIXME - the value of getenv is AFAIK guranteed to stay current during the
- whole program run time. So in theory the next three lines could be replaced
- by something like this:
-
- char *str = getenv ("ESDDSP_NAME");
- if (!str)
- str = "esddsp";
-
- If anybody can test it...
- */
+ /* FIXME - the value of getenv is AFAIK guranteed to stay
+ * current during the whole program run time. So in theory the
+ * next three lines could be replaced by something like this:
+ * - Max horn
+ *
+ * char *str = getenv ("ESDDSP_NAME");
+ * if (!str)
+ * str = "esddsp";
+ *
+ * If anybody can test it...
+ */
char *str = getenv ("ESDDSP_NAME");
+ if (!str)
+ str = "esddsp";
+
+/* OLD METHOD
+
+ char *str = getenv ("ESDDSP_NAME");
ident = malloc (ESD_NAME_MAX);
strncpy (ident, (str ? str : "esddsp"), ESD_NAME_MAX);
use_mixer = 1;
str = getenv ("HOME");
- /* FIXME - if $HOME is not set, mixer will stay NULL, but is passed later
- on to open, leading to a potential crash.
- */
+
+ FIXME - if $HOME is not set, mixer will stay NULL, but is passed later
+ on to open, leading to a potential crash.
+
if (str)
{
mixer = malloc (strlen (str) + strlen (ident) + 10);
sprintf (mixer, "%s/.esddsp_%s", str, ident);
}
+*/
}
}
|