On 07/30/2012 06:01 PM, S. Christian Collins wrote:
When compiling FluidSynth, I get the following errors when it gets to
*fluid_oss.c.o*:
/home/chris/Personal/Resource/Source/fluidsynth-1.1.6/src/drivers/fluid_oss.c:
In function ‘new_fluid_oss_audio_driver’:
/home/chris/Personal/Resource/Source/fluidsynth-1.1.6/src/drivers/fluid_oss.c:208:25:
error:
‘SOUND_PCM_WRITE_CHANNELS_is_obsolete_use_SNDCTL_DSP_CHANNELS_instead’
undeclared (first use in this function)
Is the attached patch resolving your problem?
// David
diff --git a/trunk/fluidsynth/src/drivers/fluid_oss.c b/trunk/fluidsynth/src/drivers/fluid_oss.c
index 40761db..840dad1 100644
--- a/trunk/fluidsynth/src/drivers/fluid_oss.c
+++ b/trunk/fluidsynth/src/drivers/fluid_oss.c
@@ -45,7 +45,7 @@
#define BUFFER_LENGTH 512
// Build issue on some systems (OSS 4.0)?
-#ifndef SOUND_PCM_WRITE_CHANNELS
+#ifdef SNDCTL_DSP_CHANNELS
#define SOUND_PCM_WRITE_CHANNELS SNDCTL_DSP_CHANNELS
#endif
_______________________________________________
fluid-dev mailing list
fluid-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/fluid-dev