kopia lustrzana https://gitlab.com/eliggett/wfview
Revert "Check that we have enough audio channels available."
This reverts commit 1cbf77ade0
.
half-duplex
rodzic
1cbf77ade0
commit
ec12e31163
|
@ -198,11 +198,6 @@ bool audioHandler::init(audioSetup setupIn)
|
|||
if (format.channelCount() > 2) {
|
||||
format.setChannelCount(2);
|
||||
}
|
||||
else if (format.channelCount() < 1)
|
||||
{
|
||||
qCritical(logAudio()) << (setup.isinput ? "Input" : "Output") << "No channels found, aborting setup.";
|
||||
return false;
|
||||
}
|
||||
devChannels = format.channelCount();
|
||||
nativeSampleRate = format.sampleRate();
|
||||
// chunk size is always relative to Internal Sample Rate.
|
||||
|
|
20
shuttle.cpp
20
shuttle.cpp
|
@ -96,7 +96,7 @@ void shuttle::runTimer()
|
|||
QTimer::singleShot(1000, this, SLOT(run()));
|
||||
return;
|
||||
}
|
||||
else if (res == 5 && (usbDevice == shuttleXpress || usbDevice == shuttlePro2))
|
||||
else if (res == 5)
|
||||
{
|
||||
data.resize(res);
|
||||
qDebug() << "Shuttle Data received: " << hex << (unsigned char)data[0] << ":"
|
||||
|
@ -167,24 +167,6 @@ void shuttle::runTimer()
|
|||
shutpos = (unsigned char)data[0];
|
||||
|
||||
}
|
||||
else if (res == 64 && usbDevice == RC28)
|
||||
{
|
||||
// This is a response from the Icom RC28
|
||||
data.resize(8); // Might as well get rid of the unused data.
|
||||
qDebug() << "RC28 Data received: "
|
||||
<< hex << (unsigned char)data[0] << ":"
|
||||
<< hex << (unsigned char)data[1] << ":"
|
||||
<< hex << (unsigned char)data[2] << ":"
|
||||
<< hex << (unsigned char)data[3] << ":"
|
||||
<< hex << (unsigned char)data[4] << ":"
|
||||
<< hex << (unsigned char)data[5] << ":"
|
||||
<< hex << (unsigned char)data[6] << ":"
|
||||
<< hex << (unsigned char)data[7];
|
||||
if ((unsigned char)data[0] == 0x01) {
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
// Run every 25ms
|
||||
QTimer::singleShot(25, this, SLOT(runTimer()));
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue