From 2547bf8d571cf699554b05febcc51efdc3d217d5 Mon Sep 17 00:00:00 2001 From: Tobias Doerffel Date: Sun, 22 Mar 2009 15:15:47 +0100 Subject: [PATCH] Oscillator: reverted recent fix for PM As of acaaea82046df9c9f7cc3dab792f809b7cd4753e a samplerate dependent ratio has been added into calculation of the local phase. This however is wrong for PM. --- src/core/oscillator.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/core/oscillator.cpp b/src/core/oscillator.cpp index 7bbdecab1..91d84a57a 100644 --- a/src/core/oscillator.cpp +++ b/src/core/oscillator.cpp @@ -375,13 +375,11 @@ void oscillator::updatePM( sampleFrame * _ab, const fpp_t _frames, m_subOsc->update( _ab, _frames, _chnl ); recalcPhase(); const float osc_coeff = m_freq * m_detuning; - const float sampleRateCorrection = 44100.0f / - engine::getMixer()->processingSampleRate(); for( fpp_t frame = 0; frame < _frames; ++frame ) { _ab[frame][_chnl] = getSample( m_phase + - _ab[frame][_chnl]*sampleRateCorrection ) + _ab[frame][_chnl] ) * m_volume; m_phase += osc_coeff; }