Revert "Implement audio probing to reduce audio false positive."

This reverts commit 5f386cfa87 and 17800813b9.
This commit is contained in:
Miku AuahDark
2022-05-01 21:51:31 +08:00
parent 17800813b9
commit 2620225c03
15 changed files with 3 additions and 186 deletions
-16
View File
@@ -59,22 +59,6 @@ FLACDecoder::~FLACDecoder()
drflac_close(flac);
}
int FLACDecoder::probe(Stream *stream)
{
char header[4];
if (stream->read(header, 4) >= 4)
{
if (memcmp(header, "fLaC", 4) == 0)
return 100;
else if (memcmp(header, "OggS", 4) == 0)
// Vorbis has higher priority
return 40;
}
return 0;
}
love::sound::Decoder *FLACDecoder::clone()
{
StrongRef<Stream> s(stream->clone(), Acquire::NORETAIN);