]> git.tdb.fi Git - libs/al.git/blobdiff - source/sounddecoder.h
Add dedicated exception classes for decoding sounds
[libs/al.git] / source / sounddecoder.h
index 7a08644117317623d629b88559788036b5f16e8b..ee5b07d5f33abea2410dc95076f026c0586a1ffc 100644 (file)
@@ -8,6 +8,14 @@
 namespace Msp {
 namespace AL {
 
+class unsupported_sound: public std::runtime_error
+{
+public:
+       unsupported_sound(const std::string &);
+       virtual ~unsupported_sound() throw() { }
+};
+
+
 /**
 This class facilitates loading sound files.  Currently only Ogg Vorbis is
 supported.