audioerrors.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. /******************************************************************************
  2. |* THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
  3. |* ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
  4. |* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
  5. |* PARTICULAR PURPOSE.
  6. |*
  7. |* Copyright 1995-2005 Nero AG. All Rights Reserved.
  8. |*-----------------------------------------------------------------------------
  9. |* NeroSDK / AudioPluginManager
  10. |*
  11. |* FILE: audioerrors.h
  12. |*
  13. |* PURPOSE: Definition of the audio plugin manager error codes
  14. ******************************************************************************/
  15. #ifndef _AUDIO_ERRORS
  16. # define _AUDIO_ERRORS
  17. enum EAudioError
  18. {
  19. AE_Undefined = 0x00000000,
  20. AE_Failure = 0x80000000,
  21. AE_InvalidParameter = 0x80000001,
  22. AE_InsufficientBuffer = 0x80000002,
  23. AE_BadPathName = 0x80000003,
  24. AE_FileInvalid = 0x80000004,
  25. AE_CallNotImplemented = 0x80000005,
  26. AE_EOF = 0x80000006,
  27. AE_OpenFailed = 0x80000007,
  28. AE_SeekFailed = 0x80000008,
  29. AE_BadFormat = 0x80000009,
  30. AE_ServiceNotActive = 0x80000010,
  31. AE_ReadFault = 0x80000011,
  32. AE_WriteFault = 0x80000012,
  33. AE_WrongCall = 0x80000013,
  34. AE_FileNotFound = 0x80000014,
  35. AE_Aborted = 0x80000015,
  36. AE_Skip = 0x80000016,
  37. AE_STUB
  38. };
  39. #define RETURN_ERROR(x) \
  40. { \
  41. ASSERT(FALSE); \
  42. \
  43. if(ppStatus) \
  44. *ppStatus = new CStatus(x); \
  45. \
  46. return false; \
  47. }
  48. #define RETURN_ERROR_NOASSERT(x) \
  49. { \
  50. if(ppStatus) \
  51. *ppStatus = new CStatus(x); \
  52. \
  53. return false; \
  54. }
  55. #endif // _AUDIO_ERRORS