Downgrade error messages that users cannot do anything about
Besides, it can happen under normal circumstances that the Editor window, or any other window with clocks (prefs) is visible while no session is loaded.
This commit is contained in:
parent
e938d4936f
commit
dc338b7e93
@ -2113,7 +2113,9 @@ samplepos_t
|
||||
AudioClock::samples_from_bbt_string (timepos_t const & pos, const string& str) const
|
||||
{
|
||||
if (_session == 0) {
|
||||
error << "AudioClock::samples_from_bbt_string() called with BBT mode but without session!" << endmsg;
|
||||
#ifndef NDEBUG
|
||||
cout << "AudioClock::samples_from_bbt_string() called with BBT mode but without session!\n";
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
|
||||
@ -2137,7 +2139,9 @@ samplepos_t
|
||||
AudioClock::sample_duration_from_bbt_string (timepos_t const & pos, const string& str) const
|
||||
{
|
||||
if (_session == 0) {
|
||||
error << "AudioClock::sample_duration_from_bbt_string() called with BBT mode but without session!" << endmsg;
|
||||
#ifndef NDEBUG
|
||||
cout << "AudioClock::sample_duration_from_bbt_string() called with BBT mode but without session!\n";
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user