X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Foggdecoder.h;h=aab8f5c8da6b06c7b66049e90d1687e2fe4ee4bc;hb=d035e638b940f25cb5d46a049a00b34dc60dc5e0;hp=a3f5504c4c00bac79a4d46f61ea703c13e6eabc0;hpb=10cdb043b613d60c5de8f1cce0f7a5512b0d0074;p=libs%2Fal.git diff --git a/source/oggdecoder.h b/source/oggdecoder.h index a3f5504..aab8f5c 100644 --- a/source/oggdecoder.h +++ b/source/oggdecoder.h @@ -1,11 +1,23 @@ #ifndef MSP_AL_OGGDECODER_H_ #define MSP_AL_OGGDECODER_H_ +#include #include "sounddecoder.h" namespace Msp { namespace AL { +class ogg_error: public std::runtime_error +{ +public: + ogg_error(const std::string &, int); + virtual ~ogg_error() throw() { } + +private: + static std::string get_message(int); +}; + + class OggDecoder: public SoundDecoder { private: @@ -17,6 +29,8 @@ public: OggDecoder(IO::Seekable &); ~OggDecoder(); + static bool detect(const std::string &); + virtual void rewind(); virtual unsigned read(char *, unsigned); };