mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-15 19:16:40 +01:00
Don’t create MTC debug string if it’s not needed.
Removes periodic call to operator<< (and eventually loadlocale) in RT-thread in the debug version.
This commit is contained in:
parent
a021da9a9d
commit
0113de9b92
1 changed files with 7 additions and 5 deletions
|
|
@ -537,11 +537,13 @@ Session::send_midi_time_code_for_cycle (framepos_t start_frame, framepos_t end_f
|
|||
}
|
||||
|
||||
#ifndef NDEBUG
|
||||
DEBUG_STR_DECL(foo)
|
||||
DEBUG_STR_APPEND(foo,"sending ");
|
||||
DEBUG_STR_APPEND(foo, transmitting_timecode_time);
|
||||
DEBUG_TRACE (DEBUG::MTC, string_compose ("%1 qfm = %2, stamp = %3\n", DEBUG_STR(foo).str(), next_quarter_frame_to_send,
|
||||
out_stamp));
|
||||
if (DEBUG_ENABLED(DEBUG::MTC)) {
|
||||
DEBUG_STR_DECL(foo)
|
||||
DEBUG_STR_APPEND(foo,"sending ");
|
||||
DEBUG_STR_APPEND(foo, transmitting_timecode_time);
|
||||
DEBUG_TRACE (DEBUG::MTC, string_compose ("%1 qfm = %2, stamp = %3\n", DEBUG_STR(foo).str(), next_quarter_frame_to_send,
|
||||
out_stamp));
|
||||
}
|
||||
#endif
|
||||
|
||||
// Increment quarter frame counter
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue