X-Git-Url: http://git.tdb.fi/?p=libs%2Fal.git;a=blobdiff_plain;f=source%2Foggdecoder.cpp;fp=source%2Foggdecoder.cpp;h=d28734208d605e2c912444fe662fb3c72c6c5413;hp=efea1f6200874542438e6187b50294437f395e42;hb=d035e638b940f25cb5d46a049a00b34dc60dc5e0;hpb=d675d665b336507a795afaf67d18030b304b793d diff --git a/source/oggdecoder.cpp b/source/oggdecoder.cpp index efea1f6..d287342 100644 --- a/source/oggdecoder.cpp +++ b/source/oggdecoder.cpp @@ -107,6 +107,14 @@ OggDecoder::~OggDecoder() delete priv; } +bool OggDecoder::detect(const std::string &sig) +{ + static const char ogg_sig[] = { 'O', 'g', 'g', 'S' }; + if(sig.size()ovfile, 0);