kopia lustrzana https://gitlab.com/eliggett/wfview
Fix for opus?
rodzic
50c8b4e545
commit
e068bc5745
|
@ -415,8 +415,13 @@ void audioHandler::getNextAudioChunk()
|
|||
|
||||
if (audioInput != Q_NULLPTR && audioDevice != Q_NULLPTR) {
|
||||
|
||||
livePacket.data = audioDevice->readAll();
|
||||
|
||||
if (setup.codec == 0x40 || setup.codec == 0x80) {
|
||||
livePacket.data = audioDevice->read(format.bytesForDuration(setup.blockSize*1000));
|
||||
}
|
||||
else
|
||||
{
|
||||
livePacket.data = audioDevice->readAll();
|
||||
}
|
||||
if (livePacket.data.length() > 0)
|
||||
{
|
||||
Eigen::VectorXf samplesF;
|
||||
|
|
|
@ -1595,17 +1595,6 @@ void udpServer::dataForServer(QByteArray d)
|
|||
return;
|
||||
}
|
||||
|
||||
void udpServer::sendRxAudio(const audioPacket& audio)
|
||||
{
|
||||
audioHandler* sender = qobject_cast<audioHandler*>(QObject::sender());
|
||||
for (RIGCONFIG* rig : config.rigs) {
|
||||
|
||||
if (sender != Q_NULLPTR && rig->rxaudio == sender) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
void udpServer::receiveAudioData(const audioPacket& d)
|
||||
{
|
||||
|
|
|
@ -96,7 +96,6 @@ public slots:
|
|||
void dataForServer(QByteArray);
|
||||
void receiveAudioData(const audioPacket &data);
|
||||
void receiveRigCaps(rigCapabilities caps);
|
||||
void sendRxAudio(const audioPacket &audio);
|
||||
|
||||
signals:
|
||||
void haveDataFromServer(QByteArray);
|
||||
|
|
Ładowanie…
Reference in New Issue