along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- $Id$
*/
#include <cstdio>
N_("6 Channels"),
N_("8 Channels"),
N_("Manual Setup"),
+ "MIDI",
0
};
return track_button.get_active ();
}
+ARDOUR::DataType
+AddRouteDialog::type ()
+{
+ // FIXME: ew
+
+ const string str = channel_combo.get_active_text();
+ if (str == _("MIDI"))
+ return ARDOUR::DataType::MIDI;
+ else
+ return ARDOUR::DataType::AUDIO;
+}
+
string
AddRouteDialog::name_template ()
{
string str = channel_combo.get_active_text();
int chns;
- if (str == _("Mono")) {
+ if (str == _("Mono") || str == _("MIDI")) {
return 1;
} else if (str == _("Stereo")) {
return 2;