mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-11 00:56:33 +01:00
use standardized timecode formatting in verbose cursor
This commit is contained in:
parent
eab61cbafe
commit
fce8e081e5
1 changed files with 2 additions and 2 deletions
|
|
@ -115,7 +115,7 @@ VerboseCursor::set_time (framepos_t frame)
|
||||||
|
|
||||||
case AudioClock::Timecode:
|
case AudioClock::Timecode:
|
||||||
_editor->_session->timecode_time (frame, timecode);
|
_editor->_session->timecode_time (frame, timecode);
|
||||||
snprintf (buf, sizeof (buf), "%02" PRId32 ":%02" PRId32 ":%02" PRId32 ":%02" PRId32, timecode.hours, timecode.minutes, timecode.seconds, timecode.frames);
|
snprintf (buf, sizeof (buf), "%s", Timecode::timecode_format_time (timecode).c_str());
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case AudioClock::MinSec:
|
case AudioClock::MinSec:
|
||||||
|
|
@ -185,7 +185,7 @@ VerboseCursor::set_duration (framepos_t start, framepos_t end)
|
||||||
|
|
||||||
case AudioClock::Timecode:
|
case AudioClock::Timecode:
|
||||||
_editor->_session->timecode_duration (end - start, timecode);
|
_editor->_session->timecode_duration (end - start, timecode);
|
||||||
snprintf (buf, sizeof (buf), "%02" PRId32 ":%02" PRId32 ":%02" PRId32 ":%02" PRId32, timecode.hours, timecode.minutes, timecode.seconds, timecode.frames);
|
snprintf (buf, sizeof (buf), "%s", Timecode::timecode_format_time (timecode).c_str());
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case AudioClock::MinSec:
|
case AudioClock::MinSec:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue