wasapi-output.h 509 B

12345678910111213141516171819202122
  1. #include <windows.h>
  2. #include <mmdeviceapi.h>
  3. #include <audioclient.h>
  4. #ifndef KSAUDIO_SPEAKER_2POINT1
  5. #define KSAUDIO_SPEAKER_2POINT1 (KSAUDIO_SPEAKER_STEREO|SPEAKER_LOW_FREQUENCY)
  6. #endif
  7. #define KSAUDIO_SPEAKER_SURROUND_AVUTIL \
  8. (KSAUDIO_SPEAKER_STEREO|SPEAKER_FRONT_CENTER)
  9. #ifndef KSAUDIO_SPEAKER_4POINT1
  10. #define KSAUDIO_SPEAKER_4POINT1 (KSAUDIO_SPEAKER_SURROUND|SPEAKER_LOW_FREQUENCY)
  11. #endif
  12. #define safe_release(ptr) \
  13. do { \
  14. if (ptr) { \
  15. ptr->lpVtbl->Release(ptr); \
  16. } \
  17. } while (false)