mirror of
https://github.com/love2d/love.git
synced 2026-08-18 03:34:23 +02:00
Revert "Implement audio probing to reduce audio false positive."
This reverts commit5f386cfa87and17800813b9.
This commit is contained in:
@@ -97,19 +97,6 @@ VorbisDecoder::~VorbisDecoder()
|
||||
ov_clear(&handle);
|
||||
}
|
||||
|
||||
int VorbisDecoder::probe(Stream *stream)
|
||||
{
|
||||
char header[4];
|
||||
|
||||
if (stream->read(header, 4) >= 4)
|
||||
{
|
||||
if (memcmp(header, "OggS", 4) == 0)
|
||||
return 60;
|
||||
}
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
love::sound::Decoder *VorbisDecoder::clone()
|
||||
{
|
||||
StrongRef<Stream> s(stream->clone(), Acquire::NORETAIN);
|
||||
|
||||
Reference in New Issue
Block a user