Direct #undefs removed to allow flexible manipulation

via config options. Unneded #defines removed.
Improved dependance of "snd.h" and NSND.
This commit is contained in:
Andrey A. Chernov 1993-11-28 10:55:59 +00:00
parent a9627169cd
commit b81db928c3
3 changed files with 14 additions and 32 deletions

View File

@ -1,17 +1,10 @@
/* Generated by configure. Don't edit!!!! */
/* These few lines are used by FreeBSD (only??). */
#define KERNEL_SOUNDCARD
#undef EXCLUDE_PAS
#undef EXCLUDE_SB
#undef EXCLUDE_ADLIB
#undef EXCLUDE_GUS
#undef EXCLUDE_MPU401
#undef EXCLUDE_SBPRO
#undef EXCLUDE_AUDIO
#undef EXCLUDE_MIDI
#undef EXCLUDE_YM3812
#undef EXCLUDE_SEQUENCER
#undef EXCLUDE_CHIP_MIDI
#include "snd.h"
#if NSND > 0
#define CONFIGURE_SOUNDCARD
#endif
#define DSP_BUFFSIZE 32768
#define SELECTED_SOUND_OPTIONS 0xffffffff

View File

@ -58,15 +58,6 @@
#include "buf.h"
#include "i386/isa/isa_device.h"
/* These few lines are used by FreeBSD (only??). */
#if NSND > 0
#define KERNEL_SOUNDCARD
#else
#undef KERNEL_SOUNDCARD
#endif
/*
* Rest of the file is compiled only if the driver is really required.
*/

View File

@ -30,27 +30,25 @@
#include "local.h"
#undef CONFIGURE_SOUNDCARD
#undef DYNAMIC_BUFFER
#ifdef KERNEL_SOUNDCARD
#define CONFIGURE_SOUNDCARD
#define DYNAMIC_BUFFER
#undef LOADABLE_SOUNDCARD
#endif
#ifdef EXCLUDE_SEQUENCER
#ifndef EXCLUDE_MIDI
#define EXCLUDE_MIDI
#endif
#ifndef EXCLUDE_YM3812
#define EXCLUDE_YM3812
#endif
#ifndef EXCLUDE_OPL3
#define EXCLUDE_OPL3
#endif
#endif
/** UWM - new MIDI stuff **/
#ifdef EXCLUDE_CHIP_MIDI
#ifndef EXCLUDE_PRO_MIDI
#define EXCLUDE_PRO_MIDI
#endif
#endif
/** UWM - stuff **/