Discussion:
How to change the panorama method
diracsbracket
2018-11-24 08:10:10 UTC
Permalink
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/
Nicolas Dufresne
2018-11-24 22:41:39 UTC
Permalink
Post by 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
g_object_set(G_OBJECT(stereo_panorama_), "panorama", stereo_balance_,
nullptr);
g_object_set(G_OBJECT(stereo_panorama_), "method", "simple",
nullptr);
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).
Post by diracsbracket
Thanks!
--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Loading...