8000 refactor: Remove option to disable AFV aliasing · swift-project/pilotclient@74d87fa · GitHub
[go: up one dir, main page]

Skip to content

Commit 74d87fa

Browse files
committed
refactor: Remove option to disable AFV aliasing
1 parent edbabe3 commit 74d87fa

File tree

4 files changed

+5
-25
lines changed

4 files changed

+5
-25
lines changed

src/core/afv/clients/afvclient.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1329,9 +1329,6 @@ namespace swift::core::afv::clients
13291329
// void rounding issues from float/double
13301330
quint32 roundedFrequencyHz = static_cast<quint32>(qRound(frequencyHz / 1000.0)) * 1000;
13311331

1332-
// disabled?
1333-
if (!m_enableAliased) { return roundedFrequencyHz; }
1334-
13351332
// change to aliased frequency if needed
13361333
{
13371334
QMutexLocker lock(&m_mutex);

src/core/afv/clients/afvclient.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -179,13 +179,6 @@ namespace swift::core::afv::clients
179179
QSet<quint16> getEnabledTransceivers() const;
180180
//! @}
181181

182-
//! @{
183-
//! Aliased stations enabled?
184-
//! \threadsafe
185-
bool isAliasedStationsEnabled() const { return m_enableAliased; }
186-
void enableAliasedStations(bool enabled) { m_enableAliased = enabled; }
187-
//! @}
188-
189182
//! @{
190183
//! Update frequency
191184
//! \threadsafe
@@ -411,7 +404,6 @@ namespace swift::core::afv::clients
411404
std::atomic_int m_heartBeatFailures { 0 }; //!< voice server heartbeat failures
412405
std::atomic_bool m_isStarted { false };
413406
std::atomic_bool m_loopbackOn { false };
414-
std::atomic_bool m_enableAliased { true };
415407
std::atomic_bool m_winCoInitialized { false }; //!< Windows only CoInitializeEx
416408
std::atomic_bool m_integratedComUnit { false }; //!< is COM unit sychronized, integrated?
417409

src/core/context/contextaudio.cpp

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,11 @@ namespace swift::core::context
8080
{
8181
Q_UNUSED(originator)
8282
if (commandLine.isEmpty()) { return false; }
83-
CSimpleCommandParser parser({ ".vol", ".volume", // output volume
84-
".mute", // mute
85-
".unmute", // unmute
86-
".aliased" });
83+
CSimpleCommandParser parser({
84+
".vol", ".volume", // output volume
85+
".mute", // mute
86+
".unmute", // unmute
87+
});
8788
parser.parse(commandLine);
8889
if (!parser.isKnownCommand()) { return false; }
8990

@@ -103,14 +104,6 @@ namespace swift::core::context
103104
this->setMasterOutputVolume(v);
104105
return true;
105106
}
106-
else if (afvClient() && parser.matchesCommand(".aliased") && parser.countParts() > 1)
107-
{
108-
const bool enable = parser.toBool(1, true);
109-
afvClient()->enableAliasedStations(enable);
110-
111-
CLogMessage(this).info(u"Aliased stations are: %1") << boolToOnOff(enable);
112-
return true;
113-
}
114107
return false;
115108
}
116109

src/core/context/contextaudio.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,6 @@ namespace swift::core
233233
swift::misc::CSimpleCommandParser::registerCommand({ ".mute", "mute audio" });
234234
swift::misc::CSimpleCommandParser::registerCommand({ ".unmute", "unmute audio" });
235235
swift::misc::CSimpleCommandParser::registerCommand({ ".vol volume", "volume 0..100" });
236-
swift::misc::CSimpleCommandParser::registerCommand({ ".aliased on|off", "aliased HF frequencies" });
237236
}
238237

239238
// -------- parts which can run in core and GUI, referring to local voice client ------------
@@ -248,7 +247,6 @@ namespace swift::core
248247
//! .mute mute swift::core::context::CContextAudioBase
249248
//! .unmute unmute swift::core::context::CContextAudioBase
250249
//! .vol .volume volume 0..100 set volume swift::core::context::CContextAudioBase
251-
//! .aliased on|off aliased stations swift::core::context::CContextAudioBase
252250
//! </pre>
253251
virtual bool parseCommandLine(const QString &commandLine,
254252
const swift::misc::CIdentifier &originator) override;

0 commit comments

Comments
 (0)
0