Fix for mac compile

half-duplex
Phil Taylor 2023-01-14 00:17:53 +00:00
rodzic b285b81d72
commit 58f86f029b
8 zmienionych plików z 14 dodań i 14 usunięć

Wyświetl plik

@ -14,7 +14,6 @@
#include <portaudio.h>
#ifndef Q_OS_LINUX
#include "RtAudio.h"
#else
#include "rtaudio/RtAudio.h"
#endif
@ -103,4 +102,4 @@ private:
};
#endif
#endif

Wyświetl plik

@ -70,11 +70,12 @@ public slots:
virtual void incomingAudio(const audioPacket data);
virtual void convertedInput(audioPacket audio);
virtual void convertedOutput(audioPacket audio);
virtual void getNextAudioChunk();
private slots:
virtual void stateChanged(QAudio::State state);
virtual void clearUnderrun();
virtual void getNextAudioChunk();
signals:
void audioMessage(QString message);

Wyświetl plik

@ -36,7 +36,7 @@ public:
int getLatency();
using audioHandler::getNextAudioChunk;
void getNextAudioChunk(QByteArray& data);
quint16 getAmplitude();

Wyświetl plik

@ -889,7 +889,7 @@ void rigCommander::setPassband(quint16 pass)
calc = quint16((pass / 200) - 1);
}
else if (pass >= 600 || pass <=3600) // SSB/CW/PSK 10-40 (10-31 for RTTY)
else if (pass >= 600 && pass <=3600) // SSB/CW/PSK 10-40 (10-31 for RTTY)
{
calc = quint16((pass / 100) + 4);
}

Wyświetl plik

@ -42,7 +42,7 @@ public:
int getLatency();
using audioHandler::getNextAudioChunk;
void getNextAudioChunk(QByteArray& data);
quint16 getAmplitude();

Wyświetl plik

@ -37,13 +37,13 @@ using namespace std;
#define HIDDATALENGTH 64
#define MAX_STR 255
enum commandType {normal,bandswitch,modeswitch};
enum commandType {normalCommand,bandswitch,modeswitch};
struct COMMAND {
COMMAND() {}
COMMAND(int index, QString text, int command, char suffix) :
index(index), text(text), command(command), suffix(suffix), type(normal){}
index(index), text(text), command(command), suffix(suffix), type(normalCommand){}
COMMAND(int index, QString text, int command, bandType band) :
index(index), text(text), command(command), band(band), type(bandswitch) {}
COMMAND(int index, QString text, int command, mode_kind mode) :

Wyświetl plik

@ -1507,7 +1507,7 @@ void wfmain::doShuttle(bool up, unsigned char level)
void wfmain::buttonControl(const COMMAND* cmd)
{
if (cmd->type==normal) {
if (cmd->type==normalCommand) {
//qDebug() << "Other command";
issueCmdUniquePriority((cmds)cmd->command, cmd->suffix);
}

Wyświetl plik

@ -134,8 +134,8 @@ INSTALLS += stylesheets
# CONFIG(release, debug|release):DEFINES += QT_NO_DEBUG_OUTPUT
CONFIG(debug, release|debug) {
linux: QCPLIB = qcustomplotd
!linux: QCPLIB = qcustomplotd2
!win32: QCPLIB = qcustomplotd
win32: QCPLIB = qcustomplotd2
win32 {
contains(QMAKE_TARGET.arch, x86_64) {
LIBS += -L../opus/win32/VS2015/x64/Debug/
@ -152,8 +152,8 @@ CONFIG(debug, release|debug) {
}
}
} else {
linux: QCPLIB = qcustomplot
!linux: QCPLIB = qcustomplot2
!win32: QCPLIB = qcustomplot
win32: QCPLIB = qcustomplot2
win32 {
contains(QMAKE_TARGET.arch, x86_64) {
LIBS += -L../opus/win32/VS2015/x64/Release/
@ -173,7 +173,7 @@ CONFIG(debug, release|debug) {
linux:LIBS += -L./ -l$$QCPLIB -lopus
!linux:LIBS += -l$$QCPLIB -lopus
macx:LIBS += -framework CoreAudio -framework CoreFoundation -lpthread -lopus
macx:LIBS += -framework CoreAudio -framework CoreFoundation -lpthread -lopus -lqcustomplot
contains(DEFINES,USB_CONTROLLER){
linux:LIBS += -L./ -l$$QCPLIB -lhidapi-libusb