diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2017-09-18 12:39:17 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2017-09-18 12:39:17 -0400 |
commit | 30b087ab3d28f1585987fa3f6ae006562ae192e3 (patch) | |
tree | 620ae0250b5d77f90a18f8c2b83be61e4fe7b0b5 /libs/ardour/enums.cc | |
parent | cb956e3e480716a3efd280a5287bdd7bee1cedc5 (diff) |
globally change all use of "frame" to refer to audio into "sample".
Generated by tools/f2s. Some hand-editing will be required in a few places to fix up comments related to timecode
and video in order to keep the legible
Diffstat (limited to 'libs/ardour/enums.cc')
-rw-r--r-- | libs/ardour/enums.cc | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/libs/ardour/enums.cc b/libs/ardour/enums.cc index 5c792f1b6d..09ae6db6b7 100644 --- a/libs/ardour/enums.cc +++ b/libs/ardour/enums.cc @@ -143,6 +143,12 @@ setup_enum_writer () #define REGISTER_ENUM(e) i.push_back (e); s.push_back (#e) #define REGISTER_CLASS_ENUM(t,e) i.push_back (t::e); s.push_back (#e) + /* in mid-2017 the entire code base was changed to use "samples" + instead of frames, which included several enums. This hack table + entry will catch all of them. + */ + enum_writer.add_to_hack_table ("Frames", "Samples"); + REGISTER_ENUM (NullAutomation); REGISTER_ENUM (GainAutomation); REGISTER_ENUM (PanAzimuthAutomation); @@ -544,7 +550,7 @@ setup_enum_writer () REGISTER_CLASS_ENUM (AnyTime, Timecode); REGISTER_CLASS_ENUM (AnyTime, BBT); - REGISTER_CLASS_ENUM (AnyTime, Frames); + REGISTER_CLASS_ENUM (AnyTime, Samples); REGISTER_CLASS_ENUM (AnyTime, Seconds); REGISTER (_AnyTime_Type); @@ -627,7 +633,7 @@ setup_enum_writer () REGISTER_CLASS_ENUM (ExportProfileManager, Timecode); REGISTER_CLASS_ENUM (ExportProfileManager, BBT); REGISTER_CLASS_ENUM (ExportProfileManager, MinSec); - REGISTER_CLASS_ENUM (ExportProfileManager, Frames); + REGISTER_CLASS_ENUM (ExportProfileManager, Samples); REGISTER (_ExportProfileManager_TimeFormat); REGISTER_CLASS_ENUM (RegionExportChannelFactory, None); |