| 69 | |
| 70 | |
| 71 | VstPlugin::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 |
nothing calls this directly
no test coverage detected