mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-07 06:05:43 +01:00
Add a method to get the first DataType
Also put a comment about the ordering of DataTypes.
This commit is contained in:
parent
f90a70e774
commit
db28d652ca
1 changed files with 5 additions and 0 deletions
|
|
@ -44,6 +44,9 @@ public:
|
|||
* types are added, so this number is NOT suitable for serialization,
|
||||
* network, or binary anything.
|
||||
*
|
||||
* Some heuristics in Ardour's UI assume that the DataTypes are ordered
|
||||
* from most to least likely to be the main intended type of a route.
|
||||
*
|
||||
* WARNING: The number of non-NIL entries here must match num_types.
|
||||
*/
|
||||
enum Symbol {
|
||||
|
|
@ -61,6 +64,8 @@ public:
|
|||
: _symbol(symbol)
|
||||
{}
|
||||
|
||||
static DataType front() { return DataType((Symbol) 0); }
|
||||
|
||||
/** Construct from a string (Used for loading from XML and Ports)
|
||||
* The string can be as in an XML file (eg "audio" or "midi"), or a
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue