0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 03:52:22 +02:00

ao_wasapi_utils: define missing GUIDs for C

This commit is contained in:
Kacper Michajłow 2024-05-01 23:25:42 +02:00
parent 529cc38c67
commit 3ea684e7ef

View File

@ -42,6 +42,40 @@
#include "osdep/strnlen.h" #include "osdep/strnlen.h"
#include "ao_wasapi.h" #include "ao_wasapi.h"
#ifdef _MSC_VER
// Define some GUIDs that are defined only in C++ interfaces.
DEFINE_GUID(KSDATAFORMAT_SPECIFIER_NONE,
0xf6417d6, 0xc318, 0x11d0, 0xa4, 0x3f,
0, 0xa0, 0xc9, 0x22, 0x31, 0x96);
DEFINE_GUID(CLSID_MMDeviceEnumerator,
0xbcde0395, 0xe52f, 0x467c, 0x8e, 0x3d,
0xc4, 0x57, 0x92, 0x91, 0x69, 0x2e);
DEFINE_GUID(IID_IAudioClient,
0x1cb9ad4c, 0xdbfa, 0x4c32, 0xb1, 0x78, 0xc2,
0xf5, 0x68, 0xa7, 0x03, 0xb2);
DEFINE_GUID(IID_IAudioClock,
0xcd63314f, 0x3fba, 0x4a1b, 0x81, 0x2c, 0xef, 0x96,
0x35, 0x87, 0x28, 0xe7);
DEFINE_GUID(IID_IAudioEndpointVolume,
0x5cdf2c82, 0x841e, 0x4546, 0x97, 0x22,
0x0c, 0xf7, 0x40, 0x78, 0x22, 0x9a);
DEFINE_GUID(IID_IAudioRenderClient,
0xf294acfc, 0x3146, 0x4483, 0xa7, 0xbf,
0xad, 0xdc, 0xa7, 0xc2, 0x60, 0xe2);
DEFINE_GUID(IID_IAudioSessionControl,
0xf4b1a599, 0x7266, 0x4319, 0xa8, 0xca,
0xe7, 0x0a, 0xcb, 0x11, 0xe8, 0xcd);
DEFINE_GUID(IID_IMMDeviceEnumerator,
0xa95664d2, 0x9614, 0x4f35, 0xa7, 0x46,
0xde, 0x8d, 0xb6, 0x36, 0x17, 0xe6);
DEFINE_GUID(IID_IMMNotificationClient,
0x7991eec9, 0x7e89, 0x4d85, 0x83, 0x90,
0x6c, 0x70, 0x3c, 0xec, 0x60, 0xc0);
DEFINE_GUID(IID_ISimpleAudioVolume,
0x87ce5498, 0x68d6, 0x44e5, 0x92, 0x15,
0x6d, 0xa4, 0x7e, 0xf8, 0x83, 0xd8);
#endif
#ifndef KSDATAFORMAT_SUBTYPE_IEC61937_DTS #ifndef KSDATAFORMAT_SUBTYPE_IEC61937_DTS
DEFINE_GUID(KSDATAFORMAT_SUBTYPE_IEC61937_DTS, DEFINE_GUID(KSDATAFORMAT_SUBTYPE_IEC61937_DTS,
WAVE_FORMAT_DTS, 0x0000, 0x0010, 0x80, 0x00, WAVE_FORMAT_DTS, 0x0000, 0x0010, 0x80, 0x00,