Fix 2047 ("TripleOscillator: Oscillators are getting out of sync") (#3145)
Change all phase related variables in Oscillator from float to double. The parameters for the getSample methods have not been changed to double as it should suffice to only update the phase variables with double precision.
This commit is contained in:
committed by
Tres Finocchiaro
parent
4b92651d4f
commit
e3e14bb730
@@ -71,7 +71,7 @@ public:
|
||||
const IntModel * _mod_algo_model,
|
||||
const float & _freq,
|
||||
const float & _detuning,
|
||||
const float & _phase_offset,
|
||||
const double & _phase_offset,
|
||||
const float & _volume,
|
||||
Oscillator * _m_subOsc = NULL );
|
||||
virtual ~Oscillator()
|
||||
@@ -160,10 +160,10 @@ private:
|
||||
const float & m_freq;
|
||||
const float & m_detuning;
|
||||
const float & m_volume;
|
||||
const float & m_ext_phaseOffset;
|
||||
const double & m_ext_phaseOffset;
|
||||
Oscillator * m_subOsc;
|
||||
float m_phaseOffset;
|
||||
float m_phase;
|
||||
double m_phaseOffset;
|
||||
double m_phase;
|
||||
const SampleBuffer * m_userWave;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user