Browse Source

Reorder sound decoder factory preference.

Miku AuahDark 3 years ago
parent
commit
c19d7cab1e
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/modules/sound/lullaby/Sound.cpp

+ 3 - 3
src/modules/sound/lullaby/Sound.cpp

@@ -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