summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Robillard <dave@drobilla.net>2009-08-12 01:07:57 -0400
committerStefan Kost <ensonic@users.sf.net>2009-09-17 09:46:49 +0300
commit9956118be8267f7b001d85341b262864ad145cae (patch)
tree1dc1675ee89a22bf0c8cce3975f8a4f5edb84b3b
parent374d52d257b07e2fc20b405a091ed0d7085e1298 (diff)
Make mono warning visible in public documentation.
-rw-r--r--ext/lv2/gstlv2.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/ext/lv2/gstlv2.c b/ext/lv2/gstlv2.c
index ecf3fbec8..7c6e1c3bb 100644
--- a/ext/lv2/gstlv2.c
+++ b/ext/lv2/gstlv2.c
@@ -90,16 +90,20 @@ static GstPlugin *gst_lv2_plugin;
GST_DEBUG_CATEGORY_STATIC (lv2_debug);
#define GST_CAT_DEFAULT lv2_debug
-/** Convert an LV2 port role to a Gst channel positon */
+/** Convert an LV2 port role to a Gst channel positon
+ * WARNING: If the group has only a single port,
+ * GST_AUDIO_CHANNEL_POSITION_FRONT_CENTER will be returned for pg:centerRole
+ * (which is used by LV2 for mono groups), but this is not correct. In this
+ * case the value must be changed to GST_AUDIO_CHANNEL_POSITION_FRONT_MONO
+ * (this can't be done by this function because this information isn't known
+ * at the time it is used).
+ */
static GstAudioChannelPosition
gst_lv2_role_to_position (SLV2Value role)
{
/* Front. Mono and left/right are mututally exclusive */
if (slv2_value_equals (role, center_role)) {
- /** WARNING: If the group has only a single port, this must be changed to
- * GST_AUDIO_CHANNEL_POSITION_FRONT_MONO. This can't be done by this
- * function because this information isn't known at the time it is used.
- */
+
return GST_AUDIO_CHANNEL_POSITION_FRONT_CENTER;
} else if (slv2_value_equals (role, left_role)) {
return GST_AUDIO_CHANNEL_POSITION_FRONT_LEFT;