Reorder sound decoder factory preference.

This commit is contained in:
Miku AuahDark
2022-05-02 07:40:48 +08:00
parent 2620225c03
commit c19d7cab1e
+3 -3
View File
@@ -74,13 +74,13 @@ const char *Sound::getName() const
sound::Decoder *Sound::newDecoder(Stream *stream, int bufferSize)
{
std::vector<DecoderImpl> possibleDecoders = {
DecoderImplFor<MP3Decoder>(),
DecoderImplFor<WaveDecoder>(),
DecoderImplFor<FLACDecoder>(),
DecoderImplFor<VorbisDecoder>(),
#ifdef LOVE_SUPPORT_COREAUDIO
DecoderImplFor<CoreAudioDecoder>(),
#endif
DecoderImplFor<WaveDecoder>(),
DecoderImplFor<FLACDecoder>(),
DecoderImplFor<MP3Decoder>(),
#ifndef LOVE_NO_MODPLUG
DecoderImplFor<ModPlugDecoder>(), // Last because it doesn't work well with Streams.
#endif