MCPcopy Create free account
hub / github.com/LMMS/lmms / VstPlugin

Method VstPlugin

plugins/vst_base/VstPlugin.cpp:71–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69
70
71VstPlugin::VstPlugin( const QString & _plugin ) :
72 m_plugin( _plugin ),
73 m_pluginWindowID( 0 ),
74 m_embedMethod( gui
75 ? ConfigManager::inst()->vstEmbedMethod()
76 : "headless" ),
77 m_badDllFormat( false ),
78 m_version( 0 ),
79 m_currentProgram()
80{
81 setSplittedChannels( true );
82
83 tryLoad( REMOTE_VST_PLUGIN_FILEPATH );
84#ifdef LMMS_BUILD_WIN64
85 if( m_badDllFormat )
86 {
87 m_badDllFormat = false;
88 tryLoad( "32/RemoteVstPlugin32" );
89 }
90#endif
91
92 setTempo( Engine::getSong()->getTempo() );
93
94 connect( Engine::getSong(), SIGNAL( tempoChanged( bpm_t ) ),
95 this, SLOT( setTempo( bpm_t ) ), Qt::DirectConnection );
96 connect( Engine::mixer(), SIGNAL( sampleRateChanged() ),
97 this, SLOT( updateSampleRate() ) );
98
99 // update once per second
100 m_idleTimer.start( 1000 );
101 connect( &m_idleTimer, SIGNAL( timeout() ),
102 this, SLOT( idleUpdate() ) );
103}
104
105
106

Callers

nothing calls this directly

Calls 8

getSongFunction · 0.85
mixerFunction · 0.85
updateSampleRateFunction · 0.85
timeoutFunction · 0.85
vstEmbedMethodMethod · 0.80
getTempoMethod · 0.80
instFunction · 0.50
startMethod · 0.45

Tested by

no test coverage detected