kopia lustrzana https://gitlab.com/eliggett/wfview
More fixes
rodzic
dcb4712740
commit
03799b2cda
|
@ -761,6 +761,7 @@ void audioHandler::changeLatency(const quint16 newSize)
|
||||||
qInfo(logAudio()) << (setup.isinput ? "Input" : "Output") << "Changing latency to: " << newSize << " from " << setup.latency;
|
qInfo(logAudio()) << (setup.isinput ? "Input" : "Output") << "Changing latency to: " << newSize << " from " << setup.latency;
|
||||||
setup.latency = newSize;
|
setup.latency = newSize;
|
||||||
delete ringBuf;
|
delete ringBuf;
|
||||||
|
audioBuffered = false;
|
||||||
ringBuf = new wilt::Ring<audioPacket>(setup.latency / 8 + 1); // Should be customizable.
|
ringBuf = new wilt::Ring<audioPacket>(setup.latency / 8 + 1); // Should be customizable.
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -23,6 +23,7 @@
|
||||||
#define DATA_SIZE 0x15
|
#define DATA_SIZE 0x15
|
||||||
|
|
||||||
#define BUFSIZE 50 // Number of packets to buffer
|
#define BUFSIZE 50 // Number of packets to buffer
|
||||||
|
#define TXAUDIO_PERIOD 20
|
||||||
|
|
||||||
// 0x10 length control packet (connect/disconnect/idle.)
|
// 0x10 length control packet (connect/disconnect/idle.)
|
||||||
typedef union control_packet {
|
typedef union control_packet {
|
||||||
|
|
|
@ -28,7 +28,6 @@
|
||||||
#define TOKEN_RENEWAL 60000
|
#define TOKEN_RENEWAL 60000
|
||||||
#define PING_PERIOD 100
|
#define PING_PERIOD 100
|
||||||
#define IDLE_PERIOD 100
|
#define IDLE_PERIOD 100
|
||||||
#define TXAUDIO_PERIOD 10
|
|
||||||
#define AREYOUTHERE_PERIOD 500
|
#define AREYOUTHERE_PERIOD 500
|
||||||
#define WATCHDOG_PERIOD 500
|
#define WATCHDOG_PERIOD 500
|
||||||
#define RETRANSMIT_PERIOD 100
|
#define RETRANSMIT_PERIOD 100
|
||||||
|
|
|
@ -365,7 +365,7 @@ void udpServer::controlReceived()
|
||||||
rxAudioTimer = new QTimer();
|
rxAudioTimer = new QTimer();
|
||||||
rxAudioTimer->setTimerType(Qt::PreciseTimer);
|
rxAudioTimer->setTimerType(Qt::PreciseTimer);
|
||||||
connect(rxAudioTimer, &QTimer::timeout, this, std::bind(&udpServer::sendRxAudio, this));
|
connect(rxAudioTimer, &QTimer::timeout, this, std::bind(&udpServer::sendRxAudio, this));
|
||||||
rxAudioTimer->start(20);
|
rxAudioTimer->start(TXAUDIO_PERIOD);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue