From 6ca8d634fd636f65ac3aab3775d78391c4c4923e Mon Sep 17 00:00:00 2001 From: Max Horn Date: Tue, 24 Jun 2003 21:52:52 +0000 Subject: only declare class MP3Sound if USE_MAD is #defined svn-id: r8644 --- simon/sound.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'simon') diff --git a/simon/sound.cpp b/simon/sound.cpp index 08c2aa876b..61b22b5cd3 100644 --- a/simon/sound.cpp +++ b/simon/sound.cpp @@ -48,12 +48,6 @@ public: int playSound(uint sound, PlayingSoundHandle *handle, byte flags = 0); }; -class MP3Sound : public BaseSound { -public: - MP3Sound(SoundMixer *mixer, File *file, uint32 base = 0) : BaseSound(mixer, file, base) {}; - int playSound(uint sound, PlayingSoundHandle *handle, byte flags = 0); -}; - BaseSound::BaseSound(SoundMixer *mixer, File *file, uint32 base) { _mixer = mixer; _file = file; @@ -208,6 +202,12 @@ int VocSound::playSound(uint sound, PlayingSoundHandle *handle, byte flags) { } #ifdef USE_MAD +class MP3Sound : public BaseSound { +public: + MP3Sound(SoundMixer *mixer, File *file, uint32 base = 0) : BaseSound(mixer, file, base) {}; + int playSound(uint sound, PlayingSoundHandle *handle, byte flags = 0); +}; + int MP3Sound::playSound(uint sound, PlayingSoundHandle *handle, byte flags) { if (_offsets == NULL) -- cgit v1.2.3