From e0b2b671de44f6a5ca6e2c9b37af2797e6d10e0d Mon Sep 17 00:00:00 2001 From: Takamichi Horikawa Date: Sun, 12 Feb 2017 14:07:24 +0900 Subject: manually define GUID (because audioclient.h in msvc doesn't define) --- win32/fmplayer.mak | 1 - win32/guid.c | 110 +++++++++++++++++++++++++++++++++++++++++++++++++++-- 2 files changed, 106 insertions(+), 5 deletions(-) (limited to 'win32') diff --git a/win32/fmplayer.mak b/win32/fmplayer.mak index 431be9f..4eb3919 100644 --- a/win32/fmplayer.mak +++ b/win32/fmplayer.mak @@ -22,7 +22,6 @@ OBJBASE=main \ soundout \ dsoundout \ waveout \ - srcloader \ wasapiout \ winfont \ guid \ diff --git a/win32/guid.c b/win32/guid.c index 80843aa..b61381a 100644 --- a/win32/guid.c +++ b/win32/guid.c @@ -1,4 +1,106 @@ -#define INITGUID -#include -#include -#include +#include + +const CLSID CLSID_DirectSound8 = { + 0x3901cc3f, + 0x84b5, + 0x4fa4, + { + 0xba, 0x35, + 0xaa, + 0x81, + 0x72, + 0xb8, + 0xa0, + 0x9b + } +}; + +const IID IID_IDirectSound8 = { + 0xc50a7e93, + 0xf395, + 0x4834, + { + 0x9e, 0xf6, + 0x7f, + 0xa9, + 0x9d, + 0xe5, + 0x09, + 0x66 + } +}; + +const IID IID_IDirectSoundNotify = { + 0xb0210783, + 0x89cd, + 0x11d0, + { + 0xaf, 0x08, + 0x00, + 0xa0, + 0xc9, + 0x25, + 0xcd, + 0x16 + } +}; + +const IID IID_IMMDeviceEnumerator = { + 0xa95664d2, + 0x9614, + 0x4f35, + { + 0xa7, 0x46, + 0xde, + 0x8d, + 0xb6, + 0x36, + 0x17, + 0xe6 + } +}; + +const CLSID CLSID_MMDeviceEnumerator = { + 0xbcde0395, + 0xe52f, + 0x467c, + { + 0x8e, 0x3d, + 0xc4, + 0x57, + 0x92, + 0x91, + 0x69, + 0x2e + } +}; + +const IID IID_IAudioClient = { + 0x1cb9ad4c, + 0xdbfa, + 0x4c32, + { + 0xb1, 0x78, + 0xc2, + 0xf5, + 0x68, + 0xa7, + 0x03, + 0xb2 + } +}; + +const IID IID_IAudioRenderClient = { + 0xf294acfc, + 0x3146, + 0x4483, + { + 0xa7, 0xbf, + 0xad, + 0xdc, + 0xa7, + 0xc2, + 0x60, + 0xe2 + } +}; -- cgit v1.2.3