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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

25 lines
651 B
C
Raw Normal View History

2019-07-27 12:47:10 +00:00
#pragma once
2017-04-19 19:54:15 +00:00
#include <windows.h>
#include <mmdeviceapi.h>
#include <audioclient.h>
2018-05-29 19:13:02 +00:00
#ifndef KSAUDIO_SPEAKER_2POINT1
2019-09-22 21:19:10 +00:00
#define KSAUDIO_SPEAKER_2POINT1 (KSAUDIO_SPEAKER_STEREO | SPEAKER_LOW_FREQUENCY)
2018-05-29 19:13:02 +00:00
#endif
2018-02-19 19:54:37 +00:00
#define KSAUDIO_SPEAKER_SURROUND_AVUTIL \
2019-09-22 21:19:10 +00:00
(KSAUDIO_SPEAKER_STEREO | SPEAKER_FRONT_CENTER)
2018-05-29 19:13:02 +00:00
#ifndef KSAUDIO_SPEAKER_4POINT1
2019-09-22 21:19:10 +00:00
#define KSAUDIO_SPEAKER_4POINT1 \
(KSAUDIO_SPEAKER_SURROUND | SPEAKER_LOW_FREQUENCY)
2018-05-29 19:13:02 +00:00
#endif
2017-04-19 19:54:15 +00:00
2019-09-22 21:19:10 +00:00
#define safe_release(ptr) \
do { \
if (ptr) { \
2017-04-19 19:54:15 +00:00
ptr->lpVtbl->Release(ptr); \
2019-09-22 21:19:10 +00:00
} \
2017-04-19 19:54:15 +00:00
} while (false)