mirror of
https://github.com/love2d/love.git
synced 2026-08-16 16:20:42 +02:00
Enabled CoreAudio sound decoder support on iOS
--HG-- branch : minor
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
* 3. This notice may not be removed or altered from any source distribution.
|
||||
**/
|
||||
|
||||
#ifdef LOVE_SUPPORT_CORE_AUDIO
|
||||
#ifdef LOVE_SUPPORT_COREAUDIO
|
||||
|
||||
// LOVE
|
||||
#include "CoreAudioDecoder.h"
|
||||
@@ -271,4 +271,4 @@ int CoreAudioDecoder::getBitDepth() const
|
||||
} // sound
|
||||
} // love
|
||||
|
||||
#endif // LOVE_SUPPORT_CORE_AUDIO
|
||||
#endif // LOVE_SUPPORT_COREAUDIO
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
|
||||
#include "common/config.h"
|
||||
|
||||
#ifdef LOVE_SUPPORT_CORE_AUDIO
|
||||
#ifdef LOVE_SUPPORT_COREAUDIO
|
||||
|
||||
// LOVE
|
||||
#include "common/Data.h"
|
||||
@@ -76,6 +76,6 @@ private:
|
||||
} // sound
|
||||
} // love
|
||||
|
||||
#endif // LOVE_SUPPORT_CORE_AUDIO
|
||||
#endif // LOVE_SUPPORT_COREAUDIO
|
||||
|
||||
#endif // LOVE_SOUND_LULLABY_CORE_AUDIO_DECODER_H
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
# include "Mpg123Decoder.h"
|
||||
#endif // LOVE_NOMPG123
|
||||
|
||||
#ifdef LOVE_SUPPORT_CORE_AUDIO
|
||||
#ifdef LOVE_SUPPORT_COREAUDIO
|
||||
# include "CoreAudioDecoder.h"
|
||||
#endif
|
||||
|
||||
@@ -85,7 +85,7 @@ sound::Decoder *Sound::newDecoder(love::filesystem::FileData *data, int bufferSi
|
||||
else if (GmeDecoder::accepts(ext))
|
||||
decoder = new GmeDecoder(data, ext, bufferSize);
|
||||
#endif // LOVE_SUPPORT_GME
|
||||
#ifdef LOVE_SUPPORT_CORE_AUDIO
|
||||
#ifdef LOVE_SUPPORT_COREAUDIO
|
||||
else if (CoreAudioDecoder::accepts(ext))
|
||||
decoder = new CoreAudioDecoder(data, ext, bufferSize);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user