From 153c17e5d09c0f6db740e035dd8dc11bc2eece15 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 11 Jun 2006 21:56:23 +0000 Subject: Fixed port type URIs git-svn-id: http://svn.drobilla.net/lad/libslv2@25 a436a847-0d15-0410-975c-d299462d15a1 --- src/port.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/port.c b/src/port.c index 14d95ff..f37f82a 100644 --- a/src/port.c +++ b/src/port.c @@ -34,16 +34,18 @@ slv2_port_get_class(SLV2Plugin* p, assert(class->num_values == 1); assert(class->values); - if (!strcmp((char*)class->values[0], "http://lv2plug.in/ontology#InputControlRatePort")) + if (!strcmp((char*)class->values[0], "http://lv2plug.in/ontology#ControlRateInputPort")) return SLV2_CONTROL_RATE_INPUT; - else if (!strcmp((char*)class->values[0], "http://lv2plug.in/ontology#OutputControlRatePort")) + else if (!strcmp((char*)class->values[0], "http://lv2plug.in/ontology#ControlRateOutputPort")) return SLV2_CONTROL_RATE_OUTPUT; - else if (!strcmp((char*)class->values[0], "http://lv2plug.in/ontology#InputAudioRatePort")) + else if (!strcmp((char*)class->values[0], "http://lv2plug.in/ontology#AudioRateInputPort")) return SLV2_AUDIO_RATE_INPUT; - else if (!strcmp((char*)class->values[0], "http://lv2plug.in/ontology#OutputAudioRatePort")) + else if (!strcmp((char*)class->values[0], "http://lv2plug.in/ontology#AudioRateOutputPort")) return SLV2_AUDIO_RATE_OUTPUT; - else + else { + fprintf(stderr, "Unknown port class: %s\n", class->values[0]); return SLV2_UNKNOWN_PORT_CLASS; + } } -- cgit v1.2.1