diff options
author | Adrian Knoth <adi@drcomp.erfurt.thur.de> | 2014-03-24 13:22:49 +0100 |
---|---|---|
committer | Adrian Knoth <adi@drcomp.erfurt.thur.de> | 2014-05-01 20:02:14 +0200 |
commit | 17702278345e6ab728623038fa6c0b6811cdbc78 (patch) | |
tree | dd8c182c146fbfc473c57eaf33ebaaa573adee33 /libs/ardour/enums.cc | |
parent | ca68814faf8a9e152b3aee2cb58da6eb7f1cab8f (diff) |
Introduce global default-fade-shape configuration variable
Some users always want the same fade in/out style, e.g., constant power,
symmetric, fast etc.
To avoid having them change the fade style manually for each fade, use a
global configuration variable instead.
Diffstat (limited to 'libs/ardour/enums.cc')
-rw-r--r-- | libs/ardour/enums.cc | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/libs/ardour/enums.cc b/libs/ardour/enums.cc index e32fe329af..948025cc2b 100644 --- a/libs/ardour/enums.cc +++ b/libs/ardour/enums.cc @@ -941,3 +941,16 @@ std::ostream& operator<<(std::ostream& o, const Evoral::OverlapType& var) std::string s = enum_2_string (var); return o << s; } +std::istream& operator>>(std::istream& o, FadeShape& var) +{ + std::string s; + o >> s; + var = (FadeShape) string_2_enum (s, var); + return o; +} + +std::ostream& operator<<(std::ostream& o, const FadeShape& var) +{ + std::string s = enum_2_string (var); + return o << s; +} |