How to change the panorama method

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

How to change the panorama method

diracsbracket
Hi
I apologize for this ridiculous question, but I am a complete NOOB; I
literally just started looking into the gstreamer API by trying to change
the panarama method in the Clementine Music Player, but I have no idea how
to access the correct value from the enum GstAudioPanoramaMethod

https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-good/html/gst-plugins-good-plugins-audiopanorama.html#GstAudioPanoramaMethod

In Clementine, the panorama value is set as follows:

  g_object_set(G_OBJECT(stereo_panorama_), "panorama", stereo_balance_,
               nullptr);

So, to change the method, I naively tried:

  g_object_set(G_OBJECT(stereo_panorama_), "method", "simple",
               nullptr);

But that doesn't work, resulting in the following message:

value "((GstAudioPanoramaMethod) -423475939)" of type
'GstAudioPanoramaMethod' is invalid or out of range for property 'method' of
type 'GstAudioPanoramaMethod'

My question is therefore how to access this enum value? I couldn't seem to
find any header file to include
on my linux installation.

Thanks!







--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: How to change the panorama method

Nicolas Dufresne-5
Le samedi 24 novembre 2018 à 02:10 -0600, diracsbracket a écrit :

> Hi
> I apologize for this ridiculous question, but I am a complete NOOB; I
> literally just started looking into the gstreamer API by trying to change
> the panarama method in the Clementine Music Player, but I have no idea how
> to access the correct value from the enum GstAudioPanoramaMethod
>
> https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-good/html/gst-plugins-good-plugins-audiopanorama.html#GstAudioPanoramaMethod
>
> In Clementine, the panorama value is set as follows:
>
>   g_object_set(G_OBJECT(stereo_panorama_), "panorama", stereo_balance_,
>                nullptr);
>
> So, to change the method, I naively tried:
>
>   g_object_set(G_OBJECT(stereo_panorama_), "method", "simple",
>                nullptr);
>
> But that doesn't work, resulting in the following message:
>
> value "((GstAudioPanoramaMethod) -423475939)" of type
> 'GstAudioPanoramaMethod' is invalid or out of range for property 'method' of
> type 'GstAudioPanoramaMethod'
>
> My question is therefore how to access this enum value? I couldn't seem to
> find any header file to include
> on my linux installation.

See gst-inspect-1.0 audiopanorama, the values are 0 and 1. If you want
to use strings, then use gst_util_set_object_arg (object, name, value).
This is what the parser uses (notably in gst-launch-1.0).

>
> Thanks!
>
>
>
>
>
>
>
> --
> Sent from: http://gstreamer-devel.966125.n4.nabble.com/
> _______________________________________________
> 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