Fix switch statements in ExportTimespanSelector
This commit is contained in:
parent
867460cd30
commit
84337d3018
@ -225,22 +225,22 @@ ExportTimespanSelector::construct_label (ARDOUR::Location const * location) cons
|
|||||||
samplepos_t end_sample = location->end();
|
samplepos_t end_sample = location->end();
|
||||||
|
|
||||||
switch (state->time_format) {
|
switch (state->time_format) {
|
||||||
case AudioClock::BBT:
|
case ExportProfileManager::BBT:
|
||||||
start = bbt_str (start_sample);
|
start = bbt_str (start_sample);
|
||||||
end = bbt_str (end_sample);
|
end = bbt_str (end_sample);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case AudioClock::Timecode:
|
case ExportProfileManager::Timecode:
|
||||||
start = timecode_str (start_sample);
|
start = timecode_str (start_sample);
|
||||||
end = timecode_str (end_sample);
|
end = timecode_str (end_sample);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case AudioClock::MinSec:
|
case ExportProfileManager::MinSec:
|
||||||
start = ms_str (start_sample);
|
start = ms_str (start_sample);
|
||||||
end = ms_str (end_sample);
|
end = ms_str (end_sample);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case AudioClock::Samples:
|
case ExportProfileManager::Samples:
|
||||||
start = to_string (start_sample);
|
start = to_string (start_sample);
|
||||||
end = to_string (end_sample);
|
end = to_string (end_sample);
|
||||||
break;
|
break;
|
||||||
@ -271,11 +271,11 @@ ExportTimespanSelector::construct_length (ARDOUR::Location const * location) con
|
|||||||
std::stringstream s;
|
std::stringstream s;
|
||||||
|
|
||||||
switch (state->time_format) {
|
switch (state->time_format) {
|
||||||
case AudioClock::BBT:
|
case ExportProfileManager::BBT:
|
||||||
s << bbt_str (location->length ());
|
s << bbt_str (location->length ());
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case AudioClock::Timecode:
|
case ExportProfileManager::Timecode:
|
||||||
{
|
{
|
||||||
Timecode::Time tc;
|
Timecode::Time tc;
|
||||||
_session->timecode_duration (location->length(), tc);
|
_session->timecode_duration (location->length(), tc);
|
||||||
@ -283,11 +283,11 @@ ExportTimespanSelector::construct_length (ARDOUR::Location const * location) con
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
case AudioClock::MinSec:
|
case ExportProfileManager::MinSec:
|
||||||
s << ms_str (location->length ());
|
s << ms_str (location->length ());
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case AudioClock::Samples:
|
case ExportProfileManager::Samples:
|
||||||
s << location->length ();
|
s << location->length ();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user