return retval;
}
-int
-ARDOUR::touch_file (string path)
-{
- int fd = open (path.c_str(), O_RDWR|O_CREAT, 0660);
- if (fd >= 0) {
- close (fd);
- return 0;
- }
- return 1;
-}
-
string
ARDOUR::region_name_from_path (string path, bool strip_channels, bool add_channel_suffix, uint32_t total, uint32_t this_one)
{
case MeterFalloffModerate:
return METER_FALLOFF_MODERATE;
case MeterFalloffFast:
- return METER_FALLOFF_FAST;
- case MeterFalloffFaster:
- return METER_FALLOFF_FASTER;
+ case MeterFalloffFaster: // backwards compat enum MeterFalloff
case MeterFalloffFastest:
- return METER_FALLOFF_FASTEST;
default:
return METER_FALLOFF_FAST;
}
else if (val <= METER_FALLOFF_MEDIUM) {
return MeterFalloffMedium;
}
- else if (val <= METER_FALLOFF_FAST) {
- return MeterFalloffFast;
- }
- else if (val <= METER_FALLOFF_FASTER) {
- return MeterFalloffFaster;
- }
else {
- return MeterFalloffFastest;
+ return MeterFalloffFast;
}
}