yolobs-studio/libobs/audio-monitoring/win32/wasapi-output.h

17 lines
429 B
C
Raw Normal View History

2017-04-19 19:54:15 +00:00
#include <windows.h>
#include <mmdeviceapi.h>
#include <audioclient.h>
2018-02-19 19:54:37 +00:00
2017-04-19 19:54:15 +00:00
#define KSAUDIO_SPEAKER_2POINT1 (KSAUDIO_SPEAKER_STEREO|SPEAKER_LOW_FREQUENCY)
2018-02-19 19:54:37 +00:00
#define KSAUDIO_SPEAKER_SURROUND_AVUTIL \
(KSAUDIO_SPEAKER_STEREO|SPEAKER_FRONT_CENTER)
#define KSAUDIO_SPEAKER_4POINT1 (KSAUDIO_SPEAKER_SURROUND|SPEAKER_LOW_FREQUENCY)
2017-04-19 19:54:15 +00:00
#define safe_release(ptr) \
do { \
if (ptr) { \
ptr->lpVtbl->Release(ptr); \
} \
} while (false)