mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-07 08:24:43 -04:00
Fixed some MSVC compatibility issues
This commit is contained in:
@@ -722,9 +722,14 @@ bool BladeRF2Output::applySettings(const BladeRF2OutputSettings& settings, bool
|
||||
bladeRF2OutputThread->setFifo(requestedChannel, 0);
|
||||
}
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
unsigned int fifoRate = (unsigned int) settings.m_devSampleRate / (1<<settings.m_log2Interp);
|
||||
fifoRate = fifoRate < 48000U ? 48000U : fifoRate;
|
||||
#else
|
||||
unsigned int fifoRate = std::max(
|
||||
(unsigned int) settings.m_devSampleRate / (1<<settings.m_log2Interp),
|
||||
DeviceBladeRF2Shared::m_sampleFifoMinRate);
|
||||
#endif
|
||||
m_sampleSourceFifo.resize(SampleSourceFifo::getSizePolicy(fifoRate));
|
||||
|
||||
if (fifo) {
|
||||
|
||||
Reference in New Issue
Block a user