TypeScript API Documentation for GSTREAMER AUDIO
API Version: 1.0
Library Version: 1.0.0
Generated with TypeDoc via ts-for-gir v4.0.0-beta.40
Const
#GST_TYPE_LIST, The channel mapping matrix.
The matrix coefficients must be between -1 and 1: the number of rows is equal to the number of output channels and the number of columns is equal to the number of input channels.
To generate the matrix using code:
GValue v = G_VALUE_INIT;GValue v2 = G_VALUE_INIT;GValue v3 = G_VALUE_INIT;g_value_init (&v2, GST_TYPE_ARRAY);g_value_init (&v3, G_TYPE_DOUBLE);g_value_set_double (&v3, 1);gst_value_array_append_value (&v2, &v3);g_value_unset (&v3);[ Repeat for as many double as your input channels - unset and reinit v3 ]g_value_init (&v, GST_TYPE_ARRAY);gst_value_array_append_value (&v, &v2);g_value_unset (&v2);[ Repeat for as many v2's as your output channels - unset and reinit v2]g_object_set_property (G_OBJECT (audiomixmatrix), "matrix", &v);g_value_unset (&v); Copy
GValue v = G_VALUE_INIT;GValue v2 = G_VALUE_INIT;GValue v3 = G_VALUE_INIT;g_value_init (&v2, GST_TYPE_ARRAY);g_value_init (&v3, G_TYPE_DOUBLE);g_value_set_double (&v3, 1);gst_value_array_append_value (&v2, &v3);g_value_unset (&v3);[ Repeat for as many double as your input channels - unset and reinit v3 ]g_value_init (&v, GST_TYPE_ARRAY);gst_value_array_append_value (&v, &v2);g_value_unset (&v2);[ Repeat for as many v2's as your output channels - unset and reinit v2]g_object_set_property (G_OBJECT (audiomixmatrix), "matrix", &v);g_value_unset (&v);
#GST_TYPE_LIST, The channel mapping matrix.
The matrix coefficients must be between -1 and 1: the number of rows is equal to the number of output channels and the number of columns is equal to the number of input channels.
Example matrix generation code
To generate the matrix using code: