mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-14 23:34:08 +00:00
f53df7da64
Code submissions have continually suffered from formatting inconsistencies that constantly have to be addressed. Using clang-format simplifies this by making code formatting more consistent, and allows automation of the code formatting so that maintainers can focus more on the code itself instead of code formatting.
25 lines
651 B
C
25 lines
651 B
C
#pragma once
|
|
|
|
#include <windows.h>
|
|
#include <mmdeviceapi.h>
|
|
#include <audioclient.h>
|
|
|
|
#ifndef KSAUDIO_SPEAKER_2POINT1
|
|
#define KSAUDIO_SPEAKER_2POINT1 (KSAUDIO_SPEAKER_STEREO | SPEAKER_LOW_FREQUENCY)
|
|
#endif
|
|
|
|
#define KSAUDIO_SPEAKER_SURROUND_AVUTIL \
|
|
(KSAUDIO_SPEAKER_STEREO | SPEAKER_FRONT_CENTER)
|
|
|
|
#ifndef KSAUDIO_SPEAKER_4POINT1
|
|
#define KSAUDIO_SPEAKER_4POINT1 \
|
|
(KSAUDIO_SPEAKER_SURROUND | SPEAKER_LOW_FREQUENCY)
|
|
#endif
|
|
|
|
#define safe_release(ptr) \
|
|
do { \
|
|
if (ptr) { \
|
|
ptr->lpVtbl->Release(ptr); \
|
|
} \
|
|
} while (false)
|