mirror of
https://github.com/love2d/love.git
synced 2026-08-16 16:20:42 +02:00
Initial iOS implementation.
--HG-- branch : minor
This commit is contained in:
@@ -17,9 +17,11 @@
|
||||
* misrepresented as being the original software.
|
||||
* 3. This notice may not be removed or altered from any source distribution.
|
||||
**/
|
||||
#include "common/config.h"
|
||||
|
||||
#include "ModPlugDecoder.h"
|
||||
|
||||
#ifndef LOVE_NO_MODPLUG
|
||||
|
||||
#include "common/Exception.h"
|
||||
|
||||
namespace love
|
||||
@@ -145,3 +147,5 @@ int ModPlugDecoder::getBitDepth() const
|
||||
} // lullaby
|
||||
} // sound
|
||||
} // love
|
||||
|
||||
#endif // LOVE_NO_MODPLUG
|
||||
|
||||
@@ -21,6 +21,10 @@
|
||||
#ifndef LOVE_SOUND_LULLABY_MODPLUG_DECODER_H
|
||||
#define LOVE_SOUND_LULLABY_MODPLUG_DECODER_H
|
||||
|
||||
#include "common/config.h"
|
||||
|
||||
#ifndef LOVE_NO_MODPLUG
|
||||
|
||||
// LOVE
|
||||
#include "common/Data.h"
|
||||
#include "Decoder.h"
|
||||
@@ -62,4 +66,6 @@ private:
|
||||
} // sound
|
||||
} // love
|
||||
|
||||
#endif // LOVE_NO_MODPLUG
|
||||
|
||||
#endif // LOVE_SOUND_LULLABY_MODPLUG_DECODER_H
|
||||
|
||||
@@ -69,8 +69,12 @@ sound::Decoder *Sound::newDecoder(love::filesystem::FileData *data, int bufferSi
|
||||
sound::Decoder *decoder = 0;
|
||||
|
||||
// Find a suitable decoder here, and return it.
|
||||
if (ModPlugDecoder::accepts(ext))
|
||||
if (false)
|
||||
/* nothing */;
|
||||
#ifndef LOVE_NO_MODPLUG
|
||||
else if (ModPlugDecoder::accepts(ext))
|
||||
decoder = new ModPlugDecoder(data, ext, bufferSize);
|
||||
#endif // LOVE_NO_MODPLUG
|
||||
#ifndef LOVE_NOMPG123
|
||||
else if (Mpg123Decoder::accepts(ext))
|
||||
decoder = new Mpg123Decoder(data, ext, bufferSize);
|
||||
|
||||
Reference in New Issue
Block a user