Rename engine to Engine

This commit is contained in:
Lukas W
2014-11-26 00:49:55 +01:00
parent 84d9215880
commit 968909c07c
148 changed files with 1058 additions and 1058 deletions

View File

@@ -35,7 +35,7 @@
#include "interpolation.h"
#include "lmms_basics.h"
#include "lmms_math.h"
#include "engine.h"
#include "Engine.h"
#include "Mixer.h"
#define MAXLEN 11
@@ -104,7 +104,7 @@ public:
*/
static inline float freqToLen( float f )
{
return freqToLen( f, engine::mixer()->processingSampleRate() );
return freqToLen( f, Engine::mixer()->processingSampleRate() );
}
/*! \brief This method converts frequency to wavelength, but you can use any custom sample rate with it.

View File

@@ -28,7 +28,7 @@
#include "MemoryManager.h"
#include "lmms_basics.h"
#include "engine.h"
#include "Engine.h"
#include "Mixer.h"
#include <QtCore/QAtomicInt>
#include <QtCore/QReadWriteLock>

View File

@@ -36,7 +36,7 @@
#include "export.h"
#include "MemoryManager.h"
class engine;
class Engine;
const QString PROJECTS_PATH = "projects/";
@@ -221,7 +221,7 @@ private:
settingsMap m_settings;
friend class engine;
friend class Engine;
} ;

View File

@@ -27,7 +27,7 @@
#ifndef CONTROLLER_H
#define CONTROLLER_H
#include "engine.h"
#include "Engine.h"
#include "Mixer.h"
#include "Model.h"
#include "JournallingObject.h"

View File

@@ -27,7 +27,7 @@
#define EFFECT_H
#include "Plugin.h"
#include "engine.h"
#include "Engine.h"
#include "Mixer.h"
#include "AutomatableModel.h"
#include "TempoSyncKnobModel.h"
@@ -102,8 +102,8 @@ public:
inline f_cnt_t timeout() const
{
const float samples = engine::mixer()->processingSampleRate() * m_autoQuitModel.value() / 1000.0f;
return 1 + ( static_cast<int>( samples ) / engine::mixer()->framesPerPeriod() );
const float samples = Engine::mixer()->processingSampleRate() * m_autoQuitModel.value() / 1000.0f;
return 1 + ( static_cast<int>( samples ) / Engine::mixer()->framesPerPeriod() );
}
inline float wetLevel() const
@@ -176,9 +176,9 @@ protected:
sample_rate_t _dst_sr )
{
resample( 0, _src_buf,
engine::mixer()->processingSampleRate(),
Engine::mixer()->processingSampleRate(),
_dst_buf, _dst_sr,
engine::mixer()->framesPerPeriod() );
Engine::mixer()->framesPerPeriod() );
}
inline void sampleBack( const sampleFrame * _src_buf,
@@ -186,9 +186,9 @@ protected:
sample_rate_t _src_sr )
{
resample( 1, _src_buf, _src_sr, _dst_buf,
engine::mixer()->processingSampleRate(),
engine::mixer()->framesPerPeriod() * _src_sr /
engine::mixer()->processingSampleRate() );
Engine::mixer()->processingSampleRate(),
Engine::mixer()->framesPerPeriod() * _src_sr /
Engine::mixer()->processingSampleRate() );
}
void reinitSRC();

View File

@@ -1,5 +1,5 @@
/*
* engine.h - engine-system of LMMS
* Engine.h - engine-system of LMMS
*
* Copyright (c) 2006-2014 Tobias Doerffel <tobydox/at/users.sourceforge.net>
*
@@ -50,7 +50,7 @@ class ladspa2LMMS;
class ControllerRackView;
class EXPORT engine
class EXPORT Engine
{
public:
static void init( const bool _has_gui = true );

View File

@@ -33,7 +33,7 @@
#include "FxLine.h"
#include "FxMixer.h"
#include "ModelView.h"
#include "engine.h"
#include "Engine.h"
#include "fader.h"
#include "pixmap_button.h"
#include "tooltip.h"

View File

@@ -366,7 +366,7 @@ private:
// did we start a mouseclick with shift pressed
bool m_startedWithShift;
friend class engine;
friend class Engine;
// qproperty fields
QColor m_gridColor;

View File

@@ -317,7 +317,7 @@ private:
inline f_cnt_t currentFrame() const
{
return m_playPos[m_playMode].getTicks() * engine::framesPerTick() + m_playPos[m_playMode].currentFrame();
return m_playPos[m_playMode].getTicks() * Engine::framesPerTick() + m_playPos[m_playMode].currentFrame();
}
void setPlayPos( tick_t _ticks, PlayModes _play_mode );
@@ -364,7 +364,7 @@ private:
VstSyncController m_vstSyncController;
friend class engine;
friend class Engine;
friend class SongEditor;
friend class mainWindow;
friend class ControllerRackView;