kopia lustrzana https://gitlab.com/eliggett/wfview
Adopted closing scheme for linux by default (may remove #ifdef soon).
Changed default buffer size on receive audio to 6ksamples, which is 0.125 seconds. Added debug info for audio.audioplugins
rodzic
437489647a
commit
1a1b7d0673
|
@ -474,12 +474,40 @@ udpAudio::udpAudio(QHostAddress local, QHostAddress ip, int aport)
|
|||
else
|
||||
{
|
||||
qDebug() << "Audio format not supported!";
|
||||
if(info.isNull())
|
||||
{
|
||||
qDebug() << "No device was found. You probably need to install libqt5multimedia5-plugins.";
|
||||
} else {
|
||||
|
||||
qDebug() << "Devices found: ";
|
||||
const auto deviceInfos = QAudioDeviceInfo::availableDevices(QAudio::AudioOutput);
|
||||
for (const QAudioDeviceInfo &deviceInfo : deviceInfos)
|
||||
{
|
||||
qDebug() << "Device name: " << deviceInfo.deviceName();
|
||||
qDebug() << deviceInfo.deviceName();
|
||||
qDebug() << "is null (probably not good):";
|
||||
qDebug() << deviceInfo.isNull();
|
||||
qDebug() << "channel count:";
|
||||
qDebug() << deviceInfo.supportedChannelCounts();
|
||||
qDebug() << "byte order:";
|
||||
qDebug() << deviceInfo.supportedByteOrders();
|
||||
qDebug() << "supported codecs:";
|
||||
qDebug() << deviceInfo.supportedCodecs();
|
||||
qDebug() << "sample rates:";
|
||||
qDebug() << deviceInfo.supportedSampleRates();
|
||||
qDebug() << "sample sizes:";
|
||||
qDebug() << deviceInfo.supportedSampleSizes();
|
||||
qDebug() << "sample types:";
|
||||
qDebug() << deviceInfo.supportedSampleTypes();
|
||||
}
|
||||
}
|
||||
qDebug() << "----- done with audio info -----";
|
||||
}
|
||||
|
||||
buffer = new QBuffer();
|
||||
buffer->open(QIODevice::ReadWrite);
|
||||
audio = new QAudioOutput(format);
|
||||
|
||||
audio->setBufferSize(6000); // TODO: add preference, maybe UI too.
|
||||
buffer->seek(0);
|
||||
audio->start(buffer);
|
||||
|
||||
|
|
|
@ -362,6 +362,11 @@ wfmain::~wfmain()
|
|||
delete rig;
|
||||
rigThread->quit();
|
||||
rigThread->wait();
|
||||
#endif
|
||||
#ifdef Q_OS_LINUX
|
||||
delete rig;
|
||||
rigThread->quit();
|
||||
rigThread->wait();
|
||||
#endif
|
||||
delete ui;
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue