From c60e1aeb86e61b9f29227b773ef98aeac6381f92 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Thu, 3 Jul 2003 22:05:22 +0000 Subject: cleanup for -Wundef svn-id: r8726 --- sound/fmopl.h | 6 +++--- sound/mixer.cpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'sound') diff --git a/sound/fmopl.h b/sound/fmopl.h index ac83e6ba58..486ff988d5 100644 --- a/sound/fmopl.h +++ b/sound/fmopl.h @@ -28,9 +28,9 @@ #define HAS_YM3812 1 /* --- select emulation chips --- */ -#define BUILD_YM3812 (HAS_YM3812) -#define BUILD_YM3526 (HAS_YM3526) -#define BUILD_Y8950 (HAS_Y8950) +#define BUILD_YM3812 defined(HAS_YM3812) && HAS_YM3812 +#define BUILD_YM3526 defined(HAS_YM3526) && HAS_YM3526 +#define BUILD_Y8950 defined(HAS_Y8950) && HAS_Y8950 /* select output bits size of output : 8 or 16 */ #define OPL_SAMPLE_BITS 16 diff --git a/sound/mixer.cpp b/sound/mixer.cpp index ff619c8c23..3a34642030 100644 --- a/sound/mixer.cpp +++ b/sound/mixer.cpp @@ -253,7 +253,7 @@ int SoundMixer::playVorbis(PlayingSoundHandle *handle, OggVorbis_File *ov_file, void SoundMixer::mix(int16 *buf, uint len) { _syst->lock_mutex(_mutex); - + if (_premixProc && !_paused) { int i; _premixProc(_premixParam, buf, len); -- cgit v1.2.3