File openal-alsa-emu10k1-1.2-fix.diff of Package openal-alsa-emu10k1

--- openal-alsa-emu10k1-1.2/src/al_able.c	2004-06-05 17:47:26.000000000 +0200
+++ openal-alsa-emu10k1-1.2-fixed/src/al_able.c	2007-06-25 16:52:29.000000000 +0200
@@ -17,7 +17,7 @@
  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
 
-#include <ansidecl.h>
+#include "ansidecl.h"
 
 #include "al_error.h"
 
--- openal-alsa-emu10k1-1.2/src/alc_context.c	2004-06-30 20:10:34.000000000 +0200
+++ openal-alsa-emu10k1-1.2-fixed/src/alc_context.c	2007-06-25 16:52:57.000000000 +0200
@@ -19,7 +19,7 @@
 
 #include <sys/time.h>
 #include <stdlib.h>
-#include <ansidecl.h>
+#include "ansidecl.h"
 
 #include "al_listener.h"
 #include "al_source.h"
--- openal-alsa-emu10k1-1.2/src/alc_device.c	2004-06-30 20:51:16.000000000 +0200
+++ openal-alsa-emu10k1-1.2-fixed/src/alc_device.c	2007-06-25 16:53:02.000000000 +0200
@@ -21,7 +21,7 @@
 #include <sys/fcntl.h>
 #include <unistd.h>
 #include <stdlib.h>
-#include <ansidecl.h>
+#include "ansidecl.h"
 #include <alsa/asoundlib.h>
 
 #include "alc_device.h"
@@ -100,7 +100,7 @@
 		return ALC_FALSE;		
 	snd_ctl_elem_value_clear(src->vol_ctl);
 	snd_ctl_elem_value_set_interface(src->vol_ctl,
-					 SND_CTL_ELEM_IFACE_MIXER);
+					 SND_CTL_ELEM_IFACE_PCM);
 	snd_ctl_elem_value_set_name(src->vol_ctl,
 				    "EMU10K1 PCM Volume");
 	snd_ctl_elem_value_set_index(src->vol_ctl, src->subdev);
@@ -109,7 +109,7 @@
 		return ALC_FALSE;
 	snd_ctl_elem_value_clear(src->send_ctl);
 	snd_ctl_elem_value_set_interface(src->send_ctl,
-					 SND_CTL_ELEM_IFACE_MIXER);
+					 SND_CTL_ELEM_IFACE_PCM);
 	snd_ctl_elem_value_set_name(src->send_ctl,
 				    "EMU10K1 PCM Send Volume");
 	snd_ctl_elem_value_set_index(src->send_ctl, src->subdev);
@@ -117,7 +117,7 @@
 	snd_ctl_elem_value_alloca(&route_ctl);
 	snd_ctl_elem_value_clear(route_ctl);
 	snd_ctl_elem_value_set_interface(route_ctl,
-					 SND_CTL_ELEM_IFACE_MIXER);
+					 SND_CTL_ELEM_IFACE_PCM);
 	snd_ctl_elem_value_set_name(route_ctl,
 				    "EMU10K1 PCM Send Routing");
 	snd_ctl_elem_value_set_index(route_ctl, src->subdev);
@@ -151,7 +151,7 @@
 	int card = -1;
 
 	snd_ctl_elem_info_alloca(&ctl_info);
-	snd_ctl_elem_info_set_interface(ctl_info, SND_CTL_ELEM_IFACE_MIXER);
+	snd_ctl_elem_info_set_interface(ctl_info, SND_CTL_ELEM_IFACE_PCM);
 	snd_ctl_elem_info_set_name(ctl_info, "EMU10K1 PCM Send Routing");
 	snd_ctl_elem_info_set_index(ctl_info, 0);
 
--- openal-alsa-emu10k1-1.2/src/alc_error.c	2004-06-05 17:47:26.000000000 +0200
+++ openal-alsa-emu10k1-1.2-fixed/src/alc_error.c	2007-06-25 16:53:07.000000000 +0200
@@ -17,7 +17,7 @@
  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
 
-#include <ansidecl.h>
+#include "ansidecl.h"
 
 #include "alc_error.h"
 
--- openal-alsa-emu10k1-1.2/src/alc_ext.c	2004-06-05 17:47:26.000000000 +0200
+++ openal-alsa-emu10k1-1.2-fixed/src/alc_ext.c	2007-06-25 16:53:11.000000000 +0200
@@ -17,7 +17,7 @@
  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
 
-#include <ansidecl.h>
+#include "ansidecl.h"
 
 #include <AL/al.h>
 #include <AL/alc.h>
--- openal-alsa-emu10k1-1.2/src/alc_state.c	2004-06-05 17:47:26.000000000 +0200
+++ openal-alsa-emu10k1-1.2-fixed/src/alc_state.c	2007-06-25 16:53:16.000000000 +0200
@@ -17,7 +17,7 @@
  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
 
-#include <ansidecl.h>
+#include "ansidecl.h"
 
 #include "alc_device.h"
 #include "alc_error.h"
--- openal-alsa-emu10k1-1.2/src/al_ext.c	2004-06-05 17:47:26.000000000 +0200
+++ openal-alsa-emu10k1-1.2-fixed/src/al_ext.c	2007-06-25 16:53:20.000000000 +0200
@@ -18,7 +18,7 @@
  */
 
 #include <string.h>
-#include <ansidecl.h>
+#include "ansidecl.h"
 
 #include <AL/al.h>
 #include <AL/alc.h>
--- openal-alsa-emu10k1-1.2/src/alut_main.c	2004-06-05 17:47:26.000000000 +0200
+++ openal-alsa-emu10k1-1.2-fixed/src/alut_main.c	2007-06-25 16:53:25.000000000 +0200
@@ -17,7 +17,7 @@
  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
 
-#include <ansidecl.h>
+#include "ansidecl.h"
 
 #include <AL/al.h>
 #include <AL/alc.h>
--- openal-alsa-emu10k1-1.2/src/alut_wav.c	2004-06-11 21:47:37.000000000 +0200
+++ openal-alsa-emu10k1-1.2-fixed/src/alut_wav.c	2007-06-25 16:53:29.000000000 +0200
@@ -17,7 +17,7 @@
  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
 
-#include <ansidecl.h>
+#include "ansidecl.h"
 
 #include <sys/types.h>
 #include <sys/stat.h>
--- openal-alsa-emu10k1-1.2/src/ansidecl.h	1970-01-01 01:00:00.000000000 +0100
+++ openal-alsa-emu10k1-1.2-fixed/src/ansidecl.h	2007-06-25 16:52:43.000000000 +0200
@@ -0,0 +1,3 @@
+#ifndef ATTRIBUTE_UNUSED
+#define ATTRIBUTE_UNUSED __attribute__ ((__unused__))
+#endif
--- openal-alsa-emu10k1-1.2/src/Makefile	2004-06-30 20:59:10.000000000 +0200
+++ openal-alsa-emu10k1-1.2-fixed/src/Makefile	2007-06-25 16:43:24.000000000 +0200
@@ -22,7 +22,7 @@
 PIC=-fPIC
 
 CC=gcc
-CFLAGS=-O2 -W -Wall -Wmissing-prototypes -Werror $(PIC)
+CFLAGS=-O2 -W -Wall -Wmissing-prototypes $(PIC)
 LIBS=-lasound -lpthread -lm
 SHARED=-shared -Wl,-soname,$(SONAME)
 CPPFLAGS=-I../include
openSUSE Build Service is sponsored by