mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2025-09-05 22:57:51 -04:00
Even more unused parameters
This commit is contained in:
parent
035353123d
commit
86fab39d84
@ -37,11 +37,11 @@ void IOThread::terminate() {
|
|||||||
terminated.store(true);
|
terminated.store(true);
|
||||||
};
|
};
|
||||||
|
|
||||||
void IOThread::onBindOutput(std::string name, ThreadQueueBase* threadQueue) {
|
void IOThread::onBindOutput(std::string /* name */, ThreadQueueBase* /* threadQueue */) {
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
void IOThread::onBindInput(std::string name, ThreadQueueBase* threadQueue) {
|
void IOThread::onBindInput(std::string /* name */, ThreadQueueBase* /* threadQueue */) {
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -65,4 +65,4 @@ void *IOThread::getOutputQueue(std::string qname) {
|
|||||||
|
|
||||||
bool IOThread::isTerminated() {
|
bool IOThread::isTerminated() {
|
||||||
return terminated.load();
|
return terminated.load();
|
||||||
}
|
}
|
||||||
|
@ -19,7 +19,7 @@ std::string ModemDigital::getType() {
|
|||||||
return "digital";
|
return "digital";
|
||||||
}
|
}
|
||||||
|
|
||||||
int ModemDigital::checkSampleRate(long long sampleRate, int audioSampleRate) {
|
int ModemDigital::checkSampleRate(long long sampleRate, int /* audioSampleRate */) {
|
||||||
if (sampleRate < MIN_BANDWIDTH) {
|
if (sampleRate < MIN_BANDWIDTH) {
|
||||||
return MIN_BANDWIDTH;
|
return MIN_BANDWIDTH;
|
||||||
}
|
}
|
||||||
@ -53,7 +53,7 @@ void ModemDigital::updateDemodulatorLock(modem mod, float sensitivity) {
|
|||||||
setDemodulatorLock(modem_get_demodulator_evm(mod) <= sensitivity);
|
setDemodulatorLock(modem_get_demodulator_evm(mod) <= sensitivity);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ModemDigital::digitalStart(ModemKitDigital *kit, modem mod, ModemIQData *input) {
|
void ModemDigital::digitalStart(ModemKitDigital * /* kit */, modem /* mod */, ModemIQData *input) {
|
||||||
int bufSize = input->data.size();
|
int bufSize = input->data.size();
|
||||||
|
|
||||||
if (demodOutputDataDigital.size() != bufSize) {
|
if (demodOutputDataDigital.size() != bufSize) {
|
||||||
@ -64,7 +64,7 @@ void ModemDigital::digitalStart(ModemKitDigital *kit, modem mod, ModemIQData *in
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void ModemDigital::digitalFinish(ModemKitDigital *kit, modem mod) {
|
void ModemDigital::digitalFinish(ModemKitDigital * /* kit */, modem /* mod */) {
|
||||||
#if ENABLE_DIGITAL_LAB
|
#if ENABLE_DIGITAL_LAB
|
||||||
if (digitalOut && outStream.str().length()) {
|
if (digitalOut && outStream.str().length()) {
|
||||||
digitalOut->write(outStream.str());
|
digitalOut->write(outStream.str());
|
||||||
@ -79,4 +79,4 @@ void ModemDigital::digitalFinish(ModemKitDigital *kit, modem mod) {
|
|||||||
void ModemDigital::setOutput(ModemDigitalOutput *modemDigitalOutput) {
|
void ModemDigital::setOutput(ModemDigitalOutput *modemDigitalOutput) {
|
||||||
digitalOut = modemDigitalOutput;
|
digitalOut = modemDigitalOutput;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@ -30,7 +30,7 @@ Modem *ModemFMStereo::factory() {
|
|||||||
return new ModemFMStereo;
|
return new ModemFMStereo;
|
||||||
}
|
}
|
||||||
|
|
||||||
int ModemFMStereo::checkSampleRate(long long sampleRate, int audioSampleRate) {
|
int ModemFMStereo::checkSampleRate(long long sampleRate, int /* audioSampleRate */) {
|
||||||
if (sampleRate < 100000) {
|
if (sampleRate < 100000) {
|
||||||
return 100000;
|
return 100000;
|
||||||
} else if (sampleRate < 1500) {
|
} else if (sampleRate < 1500) {
|
||||||
|
@ -27,7 +27,7 @@ void ModemIQ::disposeKit(ModemKit *kit) {
|
|||||||
delete kit;
|
delete kit;
|
||||||
}
|
}
|
||||||
|
|
||||||
int ModemIQ::checkSampleRate(long long sampleRate, int audioSampleRate) {
|
int ModemIQ::checkSampleRate(long long /* sampleRate */, int audioSampleRate) {
|
||||||
return audioSampleRate;
|
return audioSampleRate;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -35,7 +35,7 @@ int ModemIQ::getDefaultSampleRate() {
|
|||||||
return 48000;
|
return 48000;
|
||||||
}
|
}
|
||||||
|
|
||||||
void ModemIQ::demodulate(ModemKit *kit, ModemIQData *input, AudioThreadInput *audioOut) {
|
void ModemIQ::demodulate(ModemKit * /* kit */, ModemIQData *input, AudioThreadInput *audioOut) {
|
||||||
int bufSize = input->data.size();
|
int bufSize = input->data.size();
|
||||||
|
|
||||||
if (!bufSize) {
|
if (!bufSize) {
|
||||||
|
@ -33,7 +33,7 @@ ModemLSB::~ModemLSB() {
|
|||||||
ampmodem_destroy(demodAM_LSB);
|
ampmodem_destroy(demodAM_LSB);
|
||||||
}
|
}
|
||||||
|
|
||||||
int ModemLSB::checkSampleRate(long long sampleRate, int audioSampleRate) {
|
int ModemLSB::checkSampleRate(long long sampleRate, int /* audioSampleRate */) {
|
||||||
if (sampleRate < MIN_BANDWIDTH) {
|
if (sampleRate < MIN_BANDWIDTH) {
|
||||||
return MIN_BANDWIDTH;
|
return MIN_BANDWIDTH;
|
||||||
}
|
}
|
||||||
|
@ -33,7 +33,7 @@ ModemUSB::~ModemUSB() {
|
|||||||
ampmodem_destroy(demodAM_USB);
|
ampmodem_destroy(demodAM_USB);
|
||||||
}
|
}
|
||||||
|
|
||||||
int ModemUSB::checkSampleRate(long long sampleRate, int audioSampleRate) {
|
int ModemUSB::checkSampleRate(long long sampleRate, int /* audioSampleRate */) {
|
||||||
if (sampleRate < MIN_BANDWIDTH) {
|
if (sampleRate < MIN_BANDWIDTH) {
|
||||||
return MIN_BANDWIDTH;
|
return MIN_BANDWIDTH;
|
||||||
}
|
}
|
||||||
|
@ -1551,7 +1551,7 @@ bool DataTree::SaveToFileXML(const std::string& filename) {
|
|||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
bool DataTree::SaveToFile(const std::string& filename, bool compress, int compress_level) {
|
bool DataTree::SaveToFile(const std::string& filename, bool compress, int /* compress_level */) {
|
||||||
long dataSize, compressedSize, headerSize;
|
long dataSize, compressedSize, headerSize;
|
||||||
char *serialized = nullptr, *hdr_serialized = nullptr, *compressed = nullptr;
|
char *serialized = nullptr, *hdr_serialized = nullptr, *compressed = nullptr;
|
||||||
DataTree dtHeader;
|
DataTree dtHeader;
|
||||||
|
@ -47,7 +47,7 @@ void MouseTracker::OnMouseMoved(wxMouseEvent& event) {
|
|||||||
lastMouseY = mouseY;
|
lastMouseY = mouseY;
|
||||||
}
|
}
|
||||||
|
|
||||||
void MouseTracker::OnMouseWheelMoved(wxMouseEvent& event) {
|
void MouseTracker::OnMouseWheelMoved(wxMouseEvent& /* event */) {
|
||||||
// std::cout << "wheel?" << std::endl;
|
// std::cout << "wheel?" << std::endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -67,7 +67,7 @@ void MouseTracker::OnMouseDown(wxMouseEvent& event) {
|
|||||||
isMouseDown = true;
|
isMouseDown = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void MouseTracker::OnMouseReleased(wxMouseEvent& event) {
|
void MouseTracker::OnMouseReleased(wxMouseEvent& /* event */) {
|
||||||
isMouseDown = false;
|
isMouseDown = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -87,17 +87,17 @@ void MouseTracker::OnMouseRightDown(wxMouseEvent& event) {
|
|||||||
isMouseRightDown = true;
|
isMouseRightDown = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void MouseTracker::OnMouseRightReleased(wxMouseEvent& event) {
|
void MouseTracker::OnMouseRightReleased(wxMouseEvent& /* event */) {
|
||||||
isMouseRightDown = false;
|
isMouseRightDown = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
void MouseTracker::OnMouseEnterWindow(wxMouseEvent& event) {
|
void MouseTracker::OnMouseEnterWindow(wxMouseEvent& /* event */) {
|
||||||
isMouseInView = true;
|
isMouseInView = true;
|
||||||
isMouseDown = false;
|
isMouseDown = false;
|
||||||
isMouseRightDown = false;
|
isMouseRightDown = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
void MouseTracker::OnMouseLeftWindow(wxMouseEvent& event) {
|
void MouseTracker::OnMouseLeftWindow(wxMouseEvent& /* event */) {
|
||||||
isMouseDown = false;
|
isMouseDown = false;
|
||||||
isMouseRightDown = false;
|
isMouseRightDown = false;
|
||||||
isMouseInView = false;
|
isMouseInView = false;
|
||||||
|
@ -112,7 +112,7 @@ void TuningContext::DrawTuner(long long freq, int count, float displayPos, float
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void TuningContext::DrawTunerDigitBox(int index, int count, float displayPos, float displayWidth, RGBA4f c) {
|
void TuningContext::DrawTunerDigitBox(int index, int count, float displayPos, float displayWidth, RGBA4f /* c */) {
|
||||||
GLint vp[4];
|
GLint vp[4];
|
||||||
glGetIntegerv( GL_VIEWPORT, vp);
|
glGetIntegerv( GL_VIEWPORT, vp);
|
||||||
|
|
||||||
@ -152,7 +152,7 @@ int TuningContext::GetTunerDigitIndex(float mPos, int count, float displayPos, f
|
|||||||
return count - index;
|
return count - index;
|
||||||
}
|
}
|
||||||
|
|
||||||
void TuningContext::DrawTunerBarIndexed(int start, int end, int count, float displayPos, float displayWidth, RGBA4f color, float alpha, bool top,
|
void TuningContext::DrawTunerBarIndexed(int start, int end, int count, float displayPos, float displayWidth, RGBA4f color, float /* alpha */, bool top,
|
||||||
bool bottom) {
|
bool bottom) {
|
||||||
float ofs = (displayWidth / (float) count);
|
float ofs = (displayWidth / (float) count);
|
||||||
float p2 = displayPos + ofs * (float) (count - start + 1);
|
float p2 = displayPos + ofs * (float) (count - start + 1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user