diff --git a/Audio/AudioDevice.hpp b/Audio/AudioDevice.hpp index c4354687c..3ab19f0f4 100644 --- a/Audio/AudioDevice.hpp +++ b/Audio/AudioDevice.hpp @@ -43,23 +43,23 @@ protected: qint16 const * begin (reinterpret_cast (source)); for ( qint16 const * i = begin; i != begin + numFrames * (bytesPerFrame () / sizeof (qint16)); i += bytesPerFrame () / sizeof (qint16)) { - switch (m_channel) - { - case Mono: - *dest++ = *i; - break; + switch (m_channel) + { + case Mono: + *dest++ = *i; + break; - case Right: - *dest++ = *(i + 1); - break; + case Right: + *dest++ = *(i + 1); + break; - case Both: // should be able to happen but if it - // does we'll take left - Q_ASSERT (Both == m_channel); - case Left: - *dest++ = *i; - break; - } + case Both: // should be able to happen but if it + // does we'll take left + Q_ASSERT (Both == m_channel); + case Left: + *dest++ = *i; + break; + } } } @@ -68,23 +68,23 @@ protected: switch (m_channel) { case Mono: - *dest++ = sample; - break; + *dest++ = sample; + break; case Left: - *dest++ = sample; - *dest++ = 0; - break; + *dest++ = sample; + *dest++ = 0; + break; case Right: - *dest++ = 0; - *dest++ = sample; - break; + *dest++ = 0; + *dest++ = sample; + break; case Both: - *dest++ = sample; - *dest++ = sample; - break; + *dest++ = sample; + *dest++ = sample; + break; } return dest; } diff --git a/widgets/mainwindow.cpp b/widgets/mainwindow.cpp index c9d8d662a..ed6692fdb 100644 --- a/widgets/mainwindow.cpp +++ b/widgets/mainwindow.cpp @@ -484,8 +484,8 @@ MainWindow::MainWindow(QDir const& temp_directory, bool multiple, { MessageBox::warning_message (this , tr ("Audio Source") - , tr ("Excessive dropped samples") - , tr ("Reduce system load")); + , tr ("Reduce system load") + , tr ("Excessive dropped samples - %1 (%2 sec) audio frames dropped").arg (dropped_frames).arg (usec / 1.e6, 5, 'f', 3)); } }); connect (&m_audioThread, &QThread::finished, m_soundInput, &QObject::deleteLater); @@ -2950,7 +2950,7 @@ void MainWindow::on_actionSpecial_mouse_commands_triggered() Click to set Rx frequency.
Shift-click to set Tx frequency.
Ctrl-click or Right-click to set Rx and Tx frequencies.
- Double-click to also decode at Rx frequency.
+ Double-click to also decode at Rx frequency.
@@ -2958,10 +2958,10 @@ void MainWindow::on_actionSpecial_mouse_commands_triggered() Double-click to copy second callsign to Dx Call,
locator to Dx Grid, change Rx and Tx frequency to
decoded signal's frequency, and generate standard
- messages.
- If Hold Tx Freq is checked or first callsign in message
- is your own call, Tx frequency is not changed unless
- Ctrl is held down.
+ messages.
+ If Hold Tx Freq is checked or first callsign in message
+ is your own call, Tx frequency is not changed unless
+ Ctrl is held down.
@@ -5270,11 +5270,11 @@ bool MainWindow::stdCall(QString const& w) { static QRegularExpression standard_call_re { R"( - ^\s* # optional leading spaces + ^\s* # optional leading spaces ( [A-Z]{0,2} | [A-Z][0-9] | [0-9][A-Z] ) # part 1 ( [0-9][A-Z]{0,3} ) # part 2 - (/R | /P)? # optional suffix - \s*$ # optional trailing spaces + (/R | /P)? # optional suffix + \s*$ # optional trailing spaces )", QRegularExpression::CaseInsensitiveOption | QRegularExpression::ExtendedPatternSyntaxOption}; return standard_call_re.match (w).hasMatch (); }