gstaudioconvert: doc: Fix mix-matrix example
authorÁdám Balázs <broothy@gmail.com>
Wed, 31 Aug 2022 14:50:38 +0000 (14:50 +0000)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Wed, 31 Aug 2022 17:24:51 +0000 (17:24 +0000)
mix-matrix should contain float elements, modify the example to do so

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2966>

subprojects/gst-plugins-base/gst/audioconvert/gstaudioconvert.c

index 24bfe9e..896ef9c 100644 (file)
@@ -70,7 +70,7 @@
  *
  * ## Example launch line
  * |[
- * gst-launch-1.0 audiotestsrc ! audio/x-raw, channels=4 ! audioconvert mix-matrix="<<1.0, 0.0, 0.0, 0.0>, <0.0, 1.0, 0.0, 0.0>>" ! audio/x-raw,channels=2 ! autoaudiosink
+ * gst-launch-1.0 audiotestsrc ! audio/x-raw, channels=4 ! audioconvert mix-matrix="<<(float)1.0, (float)0.0, (float)0.0, (float)0.0>, <(float)0.0, (float)1.0, (float)0.0, (float)0.0>>" ! audio/x-raw,channels=2 ! autoaudiosink
  * ]|
  *
  * > If an empty mix matrix is specified, a (potentially truncated)