mirror of
https://github.com/love2d/love.git
synced 2026-08-16 16:20:42 +02:00
Fixed things pointed out by Alex Szpakowski and Bart von Strien
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
|
||||
#include <iostream>
|
||||
|
||||
#ifndef LOVE_NO_MPG123
|
||||
#ifndef LOVE_NOMPG123
|
||||
|
||||
namespace love
|
||||
{
|
||||
@@ -289,4 +289,4 @@ double Mpg123Decoder::getDuration()
|
||||
} // sound
|
||||
} // love
|
||||
|
||||
#endif // LOVE_NO_MPG123
|
||||
#endif // LOVE_NOMPG123
|
||||
@@ -25,7 +25,7 @@
|
||||
#include "common/Data.h"
|
||||
#include "Decoder.h"
|
||||
|
||||
#ifndef LOVE_NO_MPG123
|
||||
#ifndef LOVE_NOMPG123
|
||||
|
||||
// libmpg123
|
||||
#ifdef LOVE_APPLE_USE_FRAMEWORKS
|
||||
@@ -90,6 +90,6 @@ private:
|
||||
} // sound
|
||||
} // love
|
||||
|
||||
#endif // LOVE_NO_MPG123
|
||||
#endif // LOVE_NOMPG123
|
||||
|
||||
#endif // LOVE_SOUND_LULLABY_LIBMPG123_DECODER_H
|
||||
|
||||
@@ -30,9 +30,9 @@
|
||||
#include "WaveDecoder.h"
|
||||
//#include "FLACDecoder.h"
|
||||
|
||||
#ifndef LOVE_NO_MPG123
|
||||
#ifndef LOVE_NOMPG123
|
||||
# include "Mpg123Decoder.h"
|
||||
#endif // LOVE_NO_MPG123
|
||||
#endif // LOVE_NOMPG123
|
||||
|
||||
#ifdef LOVE_SUPPORT_COREAUDIO
|
||||
# include "CoreAudioDecoder.h"
|
||||
@@ -51,9 +51,9 @@ Sound::Sound()
|
||||
|
||||
Sound::~Sound()
|
||||
{
|
||||
#ifndef LOVE_NO_MPG123
|
||||
#ifndef LOVE_NOMPG123
|
||||
Mpg123Decoder::quit();
|
||||
#endif // LOVE_NO_MPG123
|
||||
#endif // LOVE_NOMPG123
|
||||
}
|
||||
|
||||
const char *Sound::getName() const
|
||||
@@ -75,10 +75,10 @@ sound::Decoder *Sound::newDecoder(love::filesystem::FileData *data, int bufferSi
|
||||
else if (ModPlugDecoder::accepts(ext))
|
||||
decoder = new ModPlugDecoder(data, ext, bufferSize);
|
||||
#endif // LOVE_NO_MODPLUG
|
||||
#ifndef LOVE_NO_MPG123
|
||||
#ifndef LOVE_NOMPG123
|
||||
else if (Mpg123Decoder::accepts(ext))
|
||||
decoder = new Mpg123Decoder(data, ext, bufferSize);
|
||||
#endif // LOVE_NO_MPG123
|
||||
#endif // LOVE_NOMPG123
|
||||
else if (VorbisDecoder::accepts(ext))
|
||||
decoder = new VorbisDecoder(data, ext, bufferSize);
|
||||
#ifdef LOVE_SUPPORT_GME
|
||||
|
||||
Reference in New Issue
Block a user