forked from mia/Aegisub
Add media.h -- I'm not sure if this will be the perm name, it currently holds exception definitions.
Originally committed to SVN as r5276.
This commit is contained in:
parent
93ceb59b0f
commit
36549ff724
1 changed files with 20 additions and 0 deletions
20
aegisub/libaegisub/include/libaegisub/media.h
Normal file
20
aegisub/libaegisub/include/libaegisub/media.h
Normal file
|
@ -0,0 +1,20 @@
|
|||
#include <libaegisub/exception.h>
|
||||
|
||||
|
||||
DEFINE_BASE_EXCEPTION_NOINNER(AudioProviderError, agi::Exception);
|
||||
DEFINE_SIMPLE_EXCEPTION_NOINNER(AudioOpenError, AudioProviderError, "audio/open/failed");
|
||||
|
||||
/// Error of some sort occurred while decoding a frame
|
||||
DEFINE_SIMPLE_EXCEPTION_NOINNER(AudioDecodeError, AudioProviderError, "audio/error");
|
||||
|
||||
|
||||
DEFINE_BASE_EXCEPTION_NOINNER(VideoProviderError, agi::Exception);
|
||||
/// File could be opened, but is not a supported format
|
||||
DEFINE_SIMPLE_EXCEPTION_NOINNER(VideoNotSupported, VideoProviderError, "video/open/notsupported");
|
||||
/// File appears to be a supported format, but could not be opened
|
||||
DEFINE_SIMPLE_EXCEPTION_NOINNER(VideoOpenError, VideoProviderError, "video/open/failed");
|
||||
|
||||
/// Error of some sort occurred while decoding a frame
|
||||
DEFINE_SIMPLE_EXCEPTION_NOINNER(VideoDecodeError, VideoProviderError, "video/error");
|
||||
|
||||
|
Loading…
Reference in a new issue