mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-12 12:09:15 +00:00
only declare class MP3Sound if USE_MAD is #defined
svn-id: r8644
This commit is contained in:
parent
22e979de21
commit
6ca8d634fd
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user