Initial iOS implementation.

--HG--
branch : minor
This commit is contained in:
Alex Szpakowski
2015-02-20 00:21:21 -04:00
parent 24c7539182
commit 85de3c41fb
47 changed files with 5206 additions and 2405 deletions
+5 -1
View File
@@ -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
+5 -1
View File
@@ -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);