ramdor / Thetis

The main working repo for changes to Thetis for the Apache Labs line of radios. Find us here : https://discord.gg/6fHCRKnDc9
https://discord.gg/6fHCRKnDc9
GNU General Public License v2.0
50 stars 14 forks source link

[BUG] Audio stuttering when RX control adjusted #416

Closed SDRDesk closed 5 months ago

SDRDesk commented 6 months ago

Regarding wave.cs :

// private object m_inversGainlock = new object(); Please, no locks on the audio path, ever, // unless you want TX and RX to stutter every time you adjust the RX gain control!

// Use volatile for the values updated instead.

private volatile bool m_bMox = false;
private volatile float m_fInverseGain = 1f;

HTH

ramdor commented 5 months ago

many thanks, i have changed as you suggest. Fantastic.