[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Traverso-commit] traverso/src/plugins/LV2 LV2Plugin.cpp
From: |
Remon Sijrier |
Subject: |
[Traverso-commit] traverso/src/plugins/LV2 LV2Plugin.cpp |
Date: |
Tue, 06 Nov 2007 20:23:39 +0000 |
CVSROOT: /sources/traverso
Module name: traverso
Changes by: Remon Sijrier <r_sijrier> 07/11/06 20:23:39
Modified files:
src/plugins/LV2: LV2Plugin.cpp
Log message:
* add forgotten break;'s after switch cases
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/traverso/src/plugins/LV2/LV2Plugin.cpp?cvsroot=traverso&r1=1.13&r2=1.14
Patches:
Index: LV2Plugin.cpp
===================================================================
RCS file: /sources/traverso/traverso/src/plugins/LV2/LV2Plugin.cpp,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -b -r1.13 -r1.14
--- LV2Plugin.cpp 6 Nov 2007 18:22:42 -0000 1.13
+++ LV2Plugin.cpp 6 Nov 2007 20:23:39 -0000 1.14
@@ -194,13 +194,6 @@
return -1;
}
- /* Get the plugin's name */
- // TODO check if newer versions of slv2 DO NOT REQUIRE THIS CALL
- // TO SUCCESFULLY INSTANTIATE THE PLUGIN !!!!!!!!!!!!!!!!!!
- char* name = slv2_plugin_get_name(m_slv2plugin);
-// printf("Name:\t%s\n", name);
- Q_UNUSED(name);
-
/* Instantiate the plugin */
int samplerate = audiodevice().get_sample_rate();
m_instance = slv2_plugin_instantiate(m_slv2plugin, samplerate, NULL);
@@ -258,6 +251,7 @@
/* Get the port symbol (label) for console printing */
char* symbol = slv2_port_get_symbol(m_slv2plugin, slvport);
+ printf("port symbol %s\n", symbol);
/* Get the 'direction' of the port (input, output) */
SLV2PortDirection portDirection = slv2_port_get_direction(m_slv2plugin,
slvport);
@@ -275,16 +269,25 @@
case SLV2_PORT_DIRECTION_OUTPUT:
ctrlport = new LV2ControlPort(this,
portIndex, 0);
break;
+ case SLV2_PORT_DIRECTION_UNKNOWN: break;
}
+ break;
case SLV2_PORT_DATA_TYPE_AUDIO:
switch (portDirection) {
case SLV2_PORT_DIRECTION_INPUT:
+ printf("ading new audio input port\n");
m_audioInputPorts.append(new
AudioInputPort(this, portIndex));
break;
case SLV2_PORT_DIRECTION_OUTPUT:
+ printf("ading new audio output port\n");
m_audioOutputPorts.append(new
AudioOutputPort(this, portIndex));
break;
+ case SLV2_PORT_DIRECTION_UNKNOWN: break;
}
+ break;
+ case SLV2_PORT_DATA_TYPE_MIDI: break;
+ case SLV2_PORT_DATA_TYPE_OSC: break;
+ case SLV2_PORT_DATA_TYPE_UNKNOWN: break;
default:
PERROR("ERROR: Unknown port data type!");
}
- [Traverso-commit] traverso/src/plugins/LV2 LV2Plugin.cpp,
Remon Sijrier <=