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:
Robin Gareus 2023-06-05 15:57:47 +02:00
parent e938d4936f
commit dc338b7e93
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -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;
}