ardour
data_type.cc
Go to the documentation of this file.
1 /*
2  Copyright (C) 2006 Paul Davis
3  Author: David Robillard
4 
5  This program is free software; you can redistribute it and/or modify it
6  under the terms of the GNU General Public License as published by the Free
7  Software Foundation; either version 2 of the License, or (at your option)
8  any later version.
9 
10  This program is distributed in the hope that it will be useful, but WITHOUT
11  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
13  for more details.
14 
15  You should have received a copy of the GNU General Public License along
16  with this program; if not, write to the Free Software Foundation, Inc.,
17  675 Mass Ave, Cambridge, MA 02139, USA.
18 */
19 
20 #include "ardour/data_type.h"
21 #include "i18n.h"
22 
23 const char *
25 {
26  switch (_symbol) {
27  case AUDIO: return _("audio");
28  case MIDI: return _("MIDI");
29  default: return _("unknown");
30  }
31 }
const char * to_i18n_string() const
Definition: data_type.cc:24
#define _(Text)
Definition: i18n.h:11
Definition: ardour.h:41