kopia lustrzana https://gitlab.com/eliggett/wfview
Fix compile warnings
rodzic
7df55bc41f
commit
80d6614ca7
|
@ -113,7 +113,11 @@ bool audioConverter::convert(audioPacket audio)
|
|||
QByteArray outPacket(nSamples * sizeof(float) * inFormat.channelCount(), (char)0xff); // Preset the output buffer size.
|
||||
float* out = (float*)outPacket.data();
|
||||
|
||||
opus_decode_float(opusDecoder, in, audio.data.size(), out, nSamples, 0);
|
||||
int ret = opus_decode_float(opusDecoder, in, audio.data.size(), out, nSamples, 0);
|
||||
if (ret != nSamples)
|
||||
{
|
||||
qDebug(logAudio()) << "opus_decode_float: returned:" << ret << "samples, expected:" << nSamples;
|
||||
}
|
||||
audio.data.clear();
|
||||
audio.data = outPacket; // Replace incoming data with converted.
|
||||
}
|
||||
|
|
|
@ -3543,7 +3543,7 @@ void rigCommander::determineRigCaps()
|
|||
bandType bandDef70cm = bandType(band70cm, 420000000, 450000000, modeUSB);
|
||||
bandType bandDef23cm = bandType(band23cm, 1240000000, 1400000000, modeUSB);
|
||||
bandType bandDef13cm = bandType(band13cm, 2300000000, 2450000000, modeUSB);
|
||||
bandType bandDef9cm = bandType(band9cm, 3300000000, 3500000000, modeUSB);
|
||||
//bandType bandDef9cm = bandType(band9cm, 3300000000, 3500000000, modeUSB);
|
||||
bandType bandDef6cm = bandType(band6cm, 5650000000, 5925000000, modeUSB);
|
||||
bandType bandDef3cm = bandType(band3cm, 10000000000, 10500000000, modeUSB);
|
||||
|
||||
|
|
|
@ -6290,6 +6290,7 @@ void wfmain::changeMode(mode_kind mode, bool dataOn)
|
|||
mode_info m;
|
||||
m.filter = (unsigned char) filter;
|
||||
m.reg = (unsigned char) mode;
|
||||
m.mk = mode;
|
||||
issueCmd(cmdSetMode, m);
|
||||
|
||||
currentMode = mode;
|
||||
|
|
Ładowanie…
Reference in New Issue