mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-25 04:53:27 -04:00
Merge pull request #2662 from srcejon/acars
NCO: Fix negative phase increments on ARM CPUs.
This commit is contained in:
+1
-1
@@ -52,7 +52,7 @@ uint64_t NCO::prsg63()
|
||||
|
||||
void NCO::setFreq(Real freq, Real sampleRate, bool integerPhase, int ditherBits)
|
||||
{
|
||||
m_phaseIncrement = (Phase) std::round((freq * pow(2.0, PhaseBits)) / sampleRate);
|
||||
m_phaseIncrement = (Phase) (qint64) std::round((freq * pow(2.0, PhaseBits)) / sampleRate);
|
||||
if (integerPhase) {
|
||||
m_phaseIncrement &= ~FracMask;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user