mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
wasapi: Guard IAudioClient2 structs and enums
These are already defined in the audioclient.h provided by the latest MinGW headers, and the existing #ifndef were obviously wrong. https://bugzilla.gnome.org/show_bug.cgi?id=794197
This commit is contained in:
parent
6e86b322d7
commit
a2f5485893
1 changed files with 11 additions and 13 deletions
|
@ -16,7 +16,16 @@ typedef interface IAudioClient3 IAudioClient3;
|
|||
#ifndef __IAudioClient3_INTERFACE_DEFINED__
|
||||
#define __IAudioClient3_INTERFACE_DEFINED__
|
||||
|
||||
#ifndef AUDIO_STREAM_CATEGORY
|
||||
/* This is only available with IAudioClient3 */
|
||||
typedef enum AUDCLNT_STREAMOPTIONS
|
||||
{
|
||||
AUDCLNT_STREAMOPTIONS_NONE = 0,
|
||||
AUDCLNT_STREAMOPTIONS_RAW = 0x1,
|
||||
AUDCLNT_STREAMOPTIONS_MATCH_FORMAT = 0x2
|
||||
} AUDCLNT_STREAMOPTIONS;
|
||||
|
||||
/* These should be available when the IAudioClient2 interface is defined */
|
||||
#ifndef __IAudioClient2_FWD_DEFINED__
|
||||
typedef enum _AUDIO_STREAM_CATEGORY {
|
||||
AudioCategory_Other = 0,
|
||||
AudioCategory_ForegroundOnlyMedia,
|
||||
|
@ -31,18 +40,7 @@ typedef enum _AUDIO_STREAM_CATEGORY {
|
|||
AudioCategory_Movie,
|
||||
AudioCategory_Media
|
||||
} AUDIO_STREAM_CATEGORY;
|
||||
#endif
|
||||
|
||||
#ifndef AUDCLNT_STREAMOPTIONS
|
||||
typedef enum AUDCLNT_STREAMOPTIONS
|
||||
{
|
||||
AUDCLNT_STREAMOPTIONS_NONE = 0,
|
||||
AUDCLNT_STREAMOPTIONS_RAW = 0x1,
|
||||
AUDCLNT_STREAMOPTIONS_MATCH_FORMAT = 0x2
|
||||
} AUDCLNT_STREAMOPTIONS;
|
||||
#endif
|
||||
|
||||
#ifndef AudioClientProperties
|
||||
typedef struct AudioClientProperties
|
||||
{
|
||||
UINT32 cbSize;
|
||||
|
@ -50,7 +48,7 @@ typedef struct AudioClientProperties
|
|||
AUDIO_STREAM_CATEGORY eCategory;
|
||||
AUDCLNT_STREAMOPTIONS Options;
|
||||
} AudioClientProperties;
|
||||
#endif
|
||||
#endif /* __IAudioClient2_FWD_DEFINED__ */
|
||||
|
||||
EXTERN_C const IID IID_IAudioClient3;
|
||||
|
||||
|
|
Loading…
Reference in a new issue