Browse Source

FLAC: Update dr_flac to 0.12.3

Improved seeking for FLAC audio files.
Miku AuahDark 5 years ago
parent
commit
5a27742c34
2 changed files with 368 additions and 175 deletions
  1. 366 172
      src/libraries/dr_flac/dr_flac.h
  2. 2 3
      src/modules/sound/lullaby/FLACDecoder.cpp

File diff suppressed because it is too large
+ 366 - 172
src/libraries/dr_flac/dr_flac.h


+ 2 - 3
src/modules/sound/lullaby/FLACDecoder.cpp

@@ -34,7 +34,7 @@ namespace lullaby
 FLACDecoder::FLACDecoder(Data *data, int nbufferSize)
 : Decoder(data, nbufferSize)
 {
-	flac = drflac_open_memory(data->getData(), data->getSize());
+	flac = drflac_open_memory(data->getData(), data->getSize(), nullptr);
 	if (flac == nullptr)
 		throw love::Exception("Could not load FLAC file");
 }
@@ -52,7 +52,7 @@ bool FLACDecoder::accepts(const std::string &ext)
 	// Please remove once it's no longer the case.
 	static const std::string supported[] =
 	{
-		"flac", "ogg"
+		"flac", "ogg", ""
 	};
 
 	for (int i = 0; !(supported[i].empty()); i++)
@@ -125,4 +125,3 @@ double FLACDecoder::getDuration()
 } // lullaby
 } // sound
 } // love
-

Some files were not shown because too many files changed in this diff