* added missing includes to compile with GCC 4.4
* optimized various loops for getting tree-vectorized, especially with upcoming GCC 4.4 git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1733 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
@@ -142,7 +142,6 @@ private:
|
||||
NumLfoShapes
|
||||
} ;
|
||||
|
||||
sample_t lfoShapeSample( fpp_t _frame_offset );
|
||||
void updateLFOShapeData( void );
|
||||
|
||||
|
||||
|
||||
@@ -30,6 +30,7 @@
|
||||
#include "midi.h"
|
||||
|
||||
#include <vector>
|
||||
#include <cstdio>
|
||||
#include <cstring>
|
||||
#include <string>
|
||||
#include <cassert>
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
#include "effect_lib.h"
|
||||
|
||||
|
||||
template<class FX = effectLib::stereoBypass<> >
|
||||
template<class FX = effectLib::stereoBypass>
|
||||
class sweepOscillator
|
||||
{
|
||||
public:
|
||||
@@ -51,11 +51,9 @@ public:
|
||||
const float df = _freq2 - _freq1;
|
||||
for( fpp_t frame = 0; frame < _frames; ++frame )
|
||||
{
|
||||
sample_t s = oscillator::sinSample( m_phase );
|
||||
for( ch_cnt_t ch = 0; ch < DEFAULT_CHANNELS; ++ch )
|
||||
{
|
||||
_ab[frame][ch] = s;
|
||||
}
|
||||
const sample_t s = oscillator::sinSample( m_phase );
|
||||
_ab[frame][0] = s;
|
||||
_ab[frame][1] = s;
|
||||
m_FX.nextSample( _ab[frame][0], _ab[frame][1] );
|
||||
m_phase += ( _freq1 + ( frame * df / _frames ) ) /
|
||||
_sample_rate;
|
||||
|
||||
@@ -30,6 +30,10 @@
|
||||
|
||||
#include "lmmsconfig.h"
|
||||
|
||||
#ifdef LMMS_HAVE_STDINT_H
|
||||
#include <stdint.h>
|
||||
#endif
|
||||
|
||||
typedef unsigned char Uint8;
|
||||
typedef signed char Sint8;
|
||||
typedef unsigned short Uint16;
|
||||
@@ -127,6 +131,8 @@ const ch_cnt_t SURROUND_CHANNELS =
|
||||
|
||||
typedef sample_t sampleFrame[DEFAULT_CHANNELS];
|
||||
typedef sample_t surroundSampleFrame[SURROUND_CHANNELS];
|
||||
|
||||
#if __GNUC__
|
||||
typedef sample_t sampleFrameA[DEFAULT_CHANNELS] __attribute__((__aligned__(16)));
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user