This is a patch and a link to two wav files (that should be placed in the
bin directory).

 

These should, of course, be two options in the audio tab defaulting to off.
As long as they default to off I don't think this would cause any problem,
would it?  Along with the caveat that you can't re-use the default audio if
the rig uses it.  I don't see where you can change the sound device in
Qt..at least not for QSound. 

 

It adds two audio messages which will get played on the default audio
device.


#1 Announces Runaway Watchdog

https://www.dropbox.com/s/oq05jfz14nzuvfe/RunawayTX.wav?dl=0

 

#2 Plays wav file when a message comes in on the current offset and is not a
CQ and does not contain your callsign

https://www.dropbox.com/s/2nqqnzgf46od1cw/Message.wav?dl=0

 

#3 Future.play a warning when you CQ on the same offset as your last QSO and
you weren't the caller.  Some people on the HamApps list have noted people
reusing frequencies and this would be a way to politely nudge them and
prevent others from making this mistake.

 

Patch in-line and attached.

 

Index: mainwindow.cpp

===================================================================

--- mainwindow.cpp       (revision 5719)

+++ mainwindow.cpp    (working copy)

@@ -15,6 +15,7 @@

#include <QtConcurrent/QtConcurrentRun>

#include <QProgressDialog>

#include <QHostInfo>

+#include <QSound>

#include <QVector>

 

 #include "revision_utils.hpp"

@@ -1631,6 +1632,8 @@

       if (((abs(decodedtext.frequencyOffset() - m_wideGraph->rxFreq()) <=
10) and

            m_mode!="JT4") or baveJT4msg) {

           // This msg is within 10 hertz of our tuned frequency, or a JT4
avg

+        if (!decodedtext.string().contains(m_baseCall) &&
!decodedtext.string().contains("CQ ")) 

+           QSound::play("Message.wav");

         ui->decodedTextBrowser2->displayDecodedText(decodedtext

                                                     , m_baseCall

                                                     , false

@@ -2185,6 +2190,7 @@

   if (m_mode.mid(0,4)!="WSPR" and m_mode!="Echo" and m_config.watchdog()
and

      m_repeatMsg>=m_watchdogLimit-1) {

     on_stopTxButton_clicked();

+    QSound::play("RunawayTX.wav");

     msgBox("Runaway Tx watchdog");

     m_repeatMsg=0;

   }

Attachment: audio.patch
Description: Binary data

------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
wsjt-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wsjt-devel

Reply via email to