wasapi-output.h 523 B

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