Open Broadcaster Software
Free, open source software for live streaming and recording
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
wasapi-output.h
Go to the documentation of this file.
1 #include <windows.h>
2 #include <mmdeviceapi.h>
3 #include <audioclient.h>
4 
5 
6 #ifndef KSAUDIO_SPEAKER_2POINT1
7 #define KSAUDIO_SPEAKER_2POINT1 (KSAUDIO_SPEAKER_STEREO|SPEAKER_LOW_FREQUENCY)
8 #endif
9 
10 #define KSAUDIO_SPEAKER_SURROUND_AVUTIL \
11  (KSAUDIO_SPEAKER_STEREO|SPEAKER_FRONT_CENTER)
12 
13 #ifndef KSAUDIO_SPEAKER_4POINT1
14 #define KSAUDIO_SPEAKER_4POINT1 (KSAUDIO_SPEAKER_SURROUND|SPEAKER_LOW_FREQUENCY)
15 #endif
16 
17 #define safe_release(ptr) \
18  do { \
19  if (ptr) { \
20  ptr->lpVtbl->Release(ptr); \
21  } \
22  } while (false)