Rename fixes
This commit is contained in:
@@ -37,12 +37,12 @@
|
||||
|
||||
#include "FileDialog.h"
|
||||
#include "GigPlayer.h"
|
||||
#include "engine.h"
|
||||
#include "Engine.h"
|
||||
#include "InstrumentTrack.h"
|
||||
#include "InstrumentPlayHandle.h"
|
||||
#include "NotePlayHandle.h"
|
||||
#include "knob.h"
|
||||
#include "song.h"
|
||||
#include "Song.h"
|
||||
#include "ConfigManager.h"
|
||||
#include "endian_handling.h"
|
||||
|
||||
@@ -87,13 +87,13 @@ GigInstrument::GigInstrument( InstrumentTrack * _instrument_track ) :
|
||||
m_currentKeyDimension( 0 )
|
||||
{
|
||||
InstrumentPlayHandle * iph = new InstrumentPlayHandle( this, _instrument_track );
|
||||
engine::mixer()->addPlayHandle( iph );
|
||||
Engine::mixer()->addPlayHandle( iph );
|
||||
|
||||
updateSampleRate();
|
||||
|
||||
connect( &m_bankNum, SIGNAL( dataChanged() ), this, SLOT( updatePatch() ) );
|
||||
connect( &m_patchNum, SIGNAL( dataChanged() ), this, SLOT( updatePatch() ) );
|
||||
connect( engine::mixer(), SIGNAL( sampleRateChanged() ), this, SLOT( updateSampleRate() ) );
|
||||
connect( Engine::mixer(), SIGNAL( sampleRateChanged() ), this, SLOT( updateSampleRate() ) );
|
||||
}
|
||||
|
||||
|
||||
@@ -101,7 +101,7 @@ GigInstrument::GigInstrument( InstrumentTrack * _instrument_track ) :
|
||||
|
||||
GigInstrument::~GigInstrument()
|
||||
{
|
||||
engine::mixer()->removePlayHandles( instrumentTrack() );
|
||||
Engine::mixer()->removePlayHandles( instrumentTrack() );
|
||||
freeInstance();
|
||||
}
|
||||
|
||||
@@ -316,8 +316,8 @@ void GigInstrument::playNote( NotePlayHandle * _n, sampleFrame * )
|
||||
// the preferences)
|
||||
void GigInstrument::play( sampleFrame * _working_buffer )
|
||||
{
|
||||
const fpp_t frames = engine::mixer()->framesPerPeriod();
|
||||
const int rate = engine::mixer()->processingSampleRate();
|
||||
const fpp_t frames = Engine::mixer()->framesPerPeriod();
|
||||
const int rate = Engine::mixer()->processingSampleRate();
|
||||
|
||||
// Initialize to zeros
|
||||
std::memset( &_working_buffer[0][0], 0, DEFAULT_CHANNELS * frames * sizeof( float ) );
|
||||
@@ -753,7 +753,7 @@ void GigInstrument::addSamples( GigNote & gignote, bool wantReleaseSample )
|
||||
if( gignote.midiNote >= keyLow && gignote.midiNote <= keyHigh )
|
||||
{
|
||||
float attenuation = pDimRegion->GetVelocityAttenuation( gignote.velocity );
|
||||
float length = (float) pSample->SamplesTotal / engine::mixer()->processingSampleRate();
|
||||
float length = (float) pSample->SamplesTotal / Engine::mixer()->processingSampleRate();
|
||||
|
||||
// TODO: sample panning? crossfade different layers?
|
||||
|
||||
@@ -1094,7 +1094,7 @@ void GigInstrumentView::showFileDialog()
|
||||
if( f != "" )
|
||||
{
|
||||
k->openFile( f );
|
||||
engine::getSong()->setModified();
|
||||
Engine::getSong()->setModified();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -109,9 +109,9 @@ bool MidiImport::tryImport( TrackContainer* tc )
|
||||
"settings dialog and try again." ) );
|
||||
}
|
||||
#else
|
||||
if( engine::hasGUI() )
|
||||
if( Engine::hasGUI() )
|
||||
{
|
||||
QMessageBox::information( engine::mainWindow(),
|
||||
QMessageBox::information( Engine::mainWindow(),
|
||||
tr( "Setup incomplete" ),
|
||||
tr( "You did not compile LMMS with support for "
|
||||
"SoundFont2 player, which is used to add default "
|
||||
|
||||
@@ -521,7 +521,7 @@ void bitInvaderView::usrWaveClicked()
|
||||
Engine::getSong()->setModified();
|
||||
/*
|
||||
m_graph->model()->setWaveToNoise();
|
||||
engine::getSong()->setModified();
|
||||
Engine::getSong()->setModified();
|
||||
// zero sample_shape
|
||||
for (int i = 0; i < sample_length; i++)
|
||||
{
|
||||
|
||||
@@ -27,8 +27,8 @@
|
||||
#define REAL_BUILD // FIXME this shouldn't be needed
|
||||
#include "CarlaHost.h"
|
||||
|
||||
#include "engine.h"
|
||||
#include "song.h"
|
||||
#include "Engine.h"
|
||||
#include "Song.h"
|
||||
#include "gui_templates.h"
|
||||
#include "InstrumentPlayHandle.h"
|
||||
#include "InstrumentTrack.h"
|
||||
@@ -181,14 +181,14 @@ CarlaInstrument::CarlaInstrument(InstrumentTrack* const instrumentTrack, const D
|
||||
|
||||
// we need a play-handle which cares for calling play()
|
||||
InstrumentPlayHandle * iph = new InstrumentPlayHandle( this, instrumentTrack );
|
||||
engine::mixer()->addPlayHandle( iph );
|
||||
Engine::mixer()->addPlayHandle( iph );
|
||||
|
||||
connect(engine::mixer(), SIGNAL(sampleRateChanged()), this, SLOT(sampleRateChanged()));
|
||||
connect(Engine::mixer(), SIGNAL(sampleRateChanged()), this, SLOT(sampleRateChanged()));
|
||||
}
|
||||
|
||||
CarlaInstrument::~CarlaInstrument()
|
||||
{
|
||||
engine::mixer()->removePlayHandles( instrumentTrack() );
|
||||
Engine::mixer()->removePlayHandles( instrumentTrack() );
|
||||
|
||||
if (fHost.resourceDir != NULL)
|
||||
{
|
||||
@@ -218,12 +218,12 @@ CarlaInstrument::~CarlaInstrument()
|
||||
|
||||
uint32_t CarlaInstrument::handleGetBufferSize() const
|
||||
{
|
||||
return engine::mixer()->framesPerPeriod();
|
||||
return Engine::mixer()->framesPerPeriod();
|
||||
}
|
||||
|
||||
double CarlaInstrument::handleGetSampleRate() const
|
||||
{
|
||||
return engine::mixer()->processingSampleRate();
|
||||
return Engine::mixer()->processingSampleRate();
|
||||
}
|
||||
|
||||
bool CarlaInstrument::handleIsOffline() const
|
||||
@@ -317,7 +317,7 @@ void CarlaInstrument::loadSettings(const QDomElement& elem)
|
||||
|
||||
void CarlaInstrument::play(sampleFrame* workingBuffer)
|
||||
{
|
||||
const uint bufsize = engine::mixer()->framesPerPeriod();
|
||||
const uint bufsize = Engine::mixer()->framesPerPeriod();
|
||||
|
||||
std::memset(workingBuffer, 0, sizeof(sample_t)*bufsize*DEFAULT_CHANNELS);
|
||||
|
||||
@@ -328,9 +328,9 @@ void CarlaInstrument::play(sampleFrame* workingBuffer)
|
||||
}
|
||||
|
||||
// set time info
|
||||
song* const s = engine::getSong();
|
||||
song* const s = Engine::getSong();
|
||||
fTimeInfo.playing = s->isPlaying();
|
||||
fTimeInfo.frame = s->getPlayPos(s->playMode()).frames(engine::framesPerTick());
|
||||
fTimeInfo.frame = s->getPlayPos(s->playMode()).frames(Engine::framesPerTick());
|
||||
fTimeInfo.usecs = s->getMilliseconds()*1000;
|
||||
fTimeInfo.bbt.bar = s->getTacts() + 1;
|
||||
fTimeInfo.bbt.beat = s->getBeat() + 1;
|
||||
|
||||
@@ -215,7 +215,7 @@ QString papuInstrument::nodeName() const
|
||||
|
||||
/*f_cnt_t papuInstrument::desiredReleaseFrames() const
|
||||
{
|
||||
const float samplerate = engine::mixer()->processingSampleRate();
|
||||
const float samplerate = Engine::mixer()->processingSampleRate();
|
||||
int maxrel = 0;
|
||||
for( int i = 0 ; i < 3 ; ++i )
|
||||
{
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
#include "ModalBar.h"
|
||||
#include "TubeBell.h"
|
||||
|
||||
#include "engine.h"
|
||||
#include "Engine.h"
|
||||
#include "gui_templates.h"
|
||||
#include "InstrumentTrack.h"
|
||||
|
||||
@@ -82,7 +82,7 @@ malletsInstrument::malletsInstrument( InstrumentTrack * _instrument_track ):
|
||||
+ "sinewave.raw" ).exists() )
|
||||
{
|
||||
// try to inform user about missing Stk-installation
|
||||
if( m_filesMissing && engine::hasGUI() )
|
||||
if( m_filesMissing && Engine::hasGUI() )
|
||||
{
|
||||
QMessageBox::information( 0, tr( "Missing files" ),
|
||||
tr( "Your Stk-installation seems to be "
|
||||
@@ -233,7 +233,7 @@ void malletsInstrument::playNote( NotePlayHandle * _n,
|
||||
m_vibratoFreqModel.value(),
|
||||
p,
|
||||
(uint8_t) m_spreadModel.value(),
|
||||
engine::mixer()->processingSampleRate() );
|
||||
Engine::mixer()->processingSampleRate() );
|
||||
}
|
||||
else if( p == 9 )
|
||||
{
|
||||
@@ -246,7 +246,7 @@ void malletsInstrument::playNote( NotePlayHandle * _n,
|
||||
m_lfoSpeedModel.value(),
|
||||
m_adsrModel.value(),
|
||||
(uint8_t) m_spreadModel.value(),
|
||||
engine::mixer()->processingSampleRate() );
|
||||
Engine::mixer()->processingSampleRate() );
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -259,7 +259,7 @@ void malletsInstrument::playNote( NotePlayHandle * _n,
|
||||
m_strikeModel.value() * 128.0,
|
||||
m_velocityModel.value(),
|
||||
(uint8_t) m_spreadModel.value(),
|
||||
engine::mixer()->processingSampleRate() );
|
||||
Engine::mixer()->processingSampleRate() );
|
||||
}
|
||||
m.unlock();
|
||||
}
|
||||
|
||||
@@ -188,7 +188,7 @@ void VstPlugin::tryLoad( const QString &remoteVstPluginExecutable )
|
||||
{
|
||||
target->setFixedSize( m_pluginGeometry );
|
||||
vstSubWin * sw = new vstSubWin(
|
||||
engine::mainWindow()->workspace() );
|
||||
Engine::mainWindow()->workspace() );
|
||||
sw->setWidget( helper );
|
||||
helper->setWindowTitle( name() );
|
||||
m_pluginWidget = helper;
|
||||
|
||||
Reference in New Issue
Block a user