made oscillator-phase always being positive which allows further optimizations of fraction()-method

git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1431 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Tobias Doerffel
2008-08-03 13:19:13 +00:00
parent 632a707e79
commit 6f05b70b5f
3 changed files with 59 additions and 5 deletions

View File

@@ -317,7 +317,8 @@ inline void oscillator::recalcPhase( void )
m_phaseOffset = m_ext_phaseOffset;
m_phase += m_phaseOffset;
}
m_phase = fraction( m_phase );
m_phase = absFraction( m_phase )+2; // make sure we're not running
// negative when doing PM
}