Re: gst-plugins-bad: wasapi: Fix build with Windows 8.1 SDK

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: gst-plugins-bad: wasapi: Fix build with Windows 8.1 SDK

Nicolas Dufresne-5
Le mardi 07 août 2018 à 19:34 +0000, Nirbheek Chauhan a écrit :

> Module: gst-plugins-bad
> Branch: master
> Commit: 10fcddedc246375d28cb74a977cfa506ba5de464
> URL:    
> http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/commit/?id=10fcddedc246375d28cb74a977cfa506ba5de464
>
> Author: Nirbheek Chauhan <[hidden email]>
> Date:   Wed Aug  8 00:49:51 2018 +0530
>
> wasapi: Fix build with Windows 8.1 SDK
>
> With the Windows 8.1 SDK, the v1 of the AUDCLNT_STREAMOPTIONS enum is
> defined which only has NONE and RAW, so it's not only defined when
> AudioClient3 is available.
>
> Add a meson check for the symbol. This is not needed for Autotools
> because there we build against the MinGW audioclient.h which is still
> at v1 of the AudioClient interface.
Was this related to https://bugzilla.gnome.org/show_bug.cgi?id=796928
the you just files ? If so, try and add reference next time.

>
> ---
>
>  sys/wasapi/gstaudioclient3.h | 3 ++-
>  sys/wasapi/meson.build       | 7 ++++++-
>  2 files changed, 8 insertions(+), 2 deletions(-)
>
> diff --git a/sys/wasapi/gstaudioclient3.h
> b/sys/wasapi/gstaudioclient3.h
> index a9f240aa1..784f478d6 100644
> --- a/sys/wasapi/gstaudioclient3.h
> +++ b/sys/wasapi/gstaudioclient3.h
> @@ -16,13 +16,14 @@ typedef interface IAudioClient3 IAudioClient3;
>  #ifndef __IAudioClient3_INTERFACE_DEFINED__
>  #define __IAudioClient3_INTERFACE_DEFINED__
>  
> -/* This is only available with IAudioClient3 */
> +#ifndef HAVE_AUDCLNT_STREAMOPTIONS
>  typedef enum AUDCLNT_STREAMOPTIONS
>  {
>      AUDCLNT_STREAMOPTIONS_NONE        = 0,
>      AUDCLNT_STREAMOPTIONS_RAW        = 0x1,
>      AUDCLNT_STREAMOPTIONS_MATCH_FORMAT = 0x2
>  } AUDCLNT_STREAMOPTIONS;
> +#endif
>  
>  /* These should be available when the IAudioClient2 interface is
> defined */
>  #ifndef __IAudioClient2_FWD_DEFINED__
> diff --git a/sys/wasapi/meson.build b/sys/wasapi/meson.build
> index cf57d8784..e426743e2 100644
> --- a/sys/wasapi/meson.build
> +++ b/sys/wasapi/meson.build
> @@ -22,9 +22,14 @@ if not have_audioclient_h and
> get_option('wasapi').enabled()
>  endif
>  
>  if ole32_dep.found() and ksuser_dep.found() and have_audioclient_h
> +  wasapi_args = ['-DCOBJMACROS']
> +  if cc.has_header_symbol('audioclient.h',
> 'AUDCLNT_STREAMOPTIONS_NONE')
> +    wasapi_args += ['-DHAVE_AUDCLNT_STREAMOPTIONS']
> +  endif
> +
>    gstwasapi = library('gstwasapi',
>      wasapi_sources,
> -    c_args : gst_plugins_bad_args + ['-DCOBJMACROS'],
> +    c_args : gst_plugins_bad_args + wasapi_args,
>      include_directories : [configinc],
>      dependencies : [gstaudio_dep, ole32_dep, ksuser_dep],
>      install : true,
>
> _______________________________________________
> gstreamer-commits mailing list
> [hidden email]
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-commits

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (201 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: gst-plugins-bad: wasapi: Fix build with Windows 8.1 SDK

Nirbheek Chauhan
On Wed, Aug 8, 2018 at 1:56 AM Nicolas Dufresne <[hidden email]> wrote:

>
> Le mardi 07 août 2018 à 19:34 +0000, Nirbheek Chauhan a écrit :
> > Module: gst-plugins-bad
> > Branch: master
> > Commit: 10fcddedc246375d28cb74a977cfa506ba5de464
> > URL:
> > http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/commit/?id=10fcddedc246375d28cb74a977cfa506ba5de464
> >
> > Author: Nirbheek Chauhan <[hidden email]>
> > Date:   Wed Aug  8 00:49:51 2018 +0530
> >
> > wasapi: Fix build with Windows 8.1 SDK
> >
> > With the Windows 8.1 SDK, the v1 of the AUDCLNT_STREAMOPTIONS enum is
> > defined which only has NONE and RAW, so it's not only defined when
> > AudioClient3 is available.
> >
> > Add a meson check for the symbol. This is not needed for Autotools
> > because there we build against the MinGW audioclient.h which is still
> > at v1 of the AudioClient interface.
>
> Was this related to https://bugzilla.gnome.org/show_bug.cgi?id=796928
> the you just files ? If so, try and add reference next time.
>

If you check the timestamps you'll notice that I filed the bug after
pushing that commit. The two are unrelated.
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

AW: gst-plugins-bad: wasapi: Fix build with Windows 8.1 SDK

Thornton, Keith
Morning
I have attached the results of my test with the current version.
Creating a new VM with Visual Studio is proving to be a challenge due to limited resources available on the PC where I currently have VMWare installed.
Regards

-----Ursprüngliche Nachricht-----
Von: gstreamer-devel [mailto:[hidden email]] Im Auftrag von Nirbheek Chauhan
Gesendet: Dienstag, 7. August 2018 22:32
An: Discussion of the development of and with GStreamer <[hidden email]>
Cc: [hidden email]
Betreff: Re: gst-plugins-bad: wasapi: Fix build with Windows 8.1 SDK

On Wed, Aug 8, 2018 at 1:56 AM Nicolas Dufresne <[hidden email]> wrote:

>
> Le mardi 07 août 2018 à 19:34 +0000, Nirbheek Chauhan a écrit :
> > Module: gst-plugins-bad
> > Branch: master
> > Commit: 10fcddedc246375d28cb74a977cfa506ba5de464
> > URL:
> > http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/commit/?id=10f
> > cddedc246375d28cb74a977cfa506ba5de464
> >
> > Author: Nirbheek Chauhan <[hidden email]>
> > Date:   Wed Aug  8 00:49:51 2018 +0530
> >
> > wasapi: Fix build with Windows 8.1 SDK
> >
> > With the Windows 8.1 SDK, the v1 of the AUDCLNT_STREAMOPTIONS enum
> > is defined which only has NONE and RAW, so it's not only defined
> > when
> > AudioClient3 is available.
> >
> > Add a meson check for the symbol. This is not needed for Autotools
> > because there we build against the MinGW audioclient.h which is
> > still at v1 of the AudioClient interface.
>
> Was this related to https://bugzilla.gnome.org/show_bug.cgi?id=796928
> the you just files ? If so, try and add reference next time.
>
If you check the timestamps you'll notice that I filed the bug after pushing that commit. The two are unrelated.
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

cerbero.log (33K) Download Attachment
glib-compile.log (29K) Download Attachment