Open Broadcaster Software
Free, open source software for live streaming and recording
wasapi-output.h
Go to the documentation of this file.
1 #include <windows.h>
2 #include <mmdeviceapi.h>
3 #include <audioclient.h>
4 
5 #define KSAUDIO_SPEAKER_4POINT1 (KSAUDIO_SPEAKER_QUAD|SPEAKER_LOW_FREQUENCY)
6 #define KSAUDIO_SPEAKER_2POINT1 (KSAUDIO_SPEAKER_STEREO|SPEAKER_LOW_FREQUENCY)
7 
8 #define safe_release(ptr) \
9  do { \
10  if (ptr) { \
11  ptr->lpVtbl->Release(ptr); \
12  } \
13  } while (false)