Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

53 lines
1.4 KiB

  1. //------------------------------------------------------------------------------
  2. // File: AudEvCod.h
  3. //
  4. // Desc: List of Audio device error event codes and the expected params.
  5. //
  6. // Copyright (c) 1999 - 2000, Microsoft Corporation. All rights reserved.
  7. //------------------------------------------------------------------------------
  8. #ifndef __AUDEVCOD__
  9. #define __AUDEVCOD__
  10. #define EC_SND_DEVICE_ERROR_BASE 0x0200
  11. typedef enum _tagSND_DEVICE_ERROR {
  12. SNDDEV_ERROR_Open=1,
  13. SNDDEV_ERROR_Close=2,
  14. SNDDEV_ERROR_GetCaps=3,
  15. SNDDEV_ERROR_PrepareHeader=4,
  16. SNDDEV_ERROR_UnprepareHeader=5,
  17. SNDDEV_ERROR_Reset=6,
  18. SNDDEV_ERROR_Restart=7,
  19. SNDDEV_ERROR_GetPosition=8,
  20. SNDDEV_ERROR_Write=9,
  21. SNDDEV_ERROR_Pause=10,
  22. SNDDEV_ERROR_Stop=11,
  23. SNDDEV_ERROR_Start=12,
  24. SNDDEV_ERROR_AddBuffer=13,
  25. SNDDEV_ERROR_Query=14,
  26. } SNDDEV_ERR;
  27. // Sound device error event codes
  28. // ==============================
  29. //
  30. // All audio device error events are always passed on to the application, and are
  31. // never processed by the filter graph
  32. #define EC_SNDDEV_IN_ERROR (EC_SND_DEVICE_ERROR_BASE + 0x00)
  33. #define EC_SNDDEV_OUT_ERROR (EC_SND_DEVICE_ERROR_BASE + 0x01)
  34. // Parameters: ( DWORD, DWORD)
  35. // lParam1 is an enum SND_DEVICE_ERROR which notifies the app how the device was
  36. // being accessed when the failure occurred.
  37. //
  38. // lParam2 is the error returned from the sound device call.
  39. //
  40. #endif // __AUDEVCOD__