Use macro from pbd/enum_convert.h to define to_string/_to for Track enum
authorTim Mayberry <mojofunk@gmail.com>
Fri, 26 Aug 2016 14:12:45 +0000 (00:12 +1000)
committerTim Mayberry <mojofunk@gmail.com>
Tue, 18 Apr 2017 23:36:50 +0000 (09:36 +1000)
libs/ardour/ardour/track.h

index 65f38e6fc0fbce6a153c618edcabde8c73fff07c..a347bdf8879ad3595e5ac81e4483dc83cb4866f8 100644 (file)
@@ -21,6 +21,8 @@
 
 #include <boost/shared_ptr.hpp>
 
+#include "pbd/enum_convert.h"
+
 #include "ardour/interthread_info.h"
 #include "ardour/recordable.h"
 #include "ardour/route.h"
@@ -261,4 +263,8 @@ private:
 
 }; /* namespace ARDOUR*/
 
+namespace PBD {
+       DEFINE_ENUM_CONVERT(ARDOUR::Track::FreezeState);
+}
+
 #endif /* __ardour_track_h__ */