| 34 | |
| 35 | |
| 36 | Effect::Effect( const Plugin::Descriptor * _desc, |
| 37 | Model * _parent, |
| 38 | const Descriptor::SubPluginFeatures::Key * _key ) : |
| 39 | Plugin( _desc, _parent ), |
| 40 | m_parent( NULL ), |
| 41 | m_key( _key ? *_key : Descriptor::SubPluginFeatures::Key() ), |
| 42 | m_processors( 1 ), |
| 43 | m_okay( true ), |
| 44 | m_noRun( false ), |
| 45 | m_running( false ), |
| 46 | m_bufferCount( 0 ), |
| 47 | m_enabledModel( true, this, tr( "Effect enabled" ) ), |
| 48 | m_wetDryModel( 1.0f, -1.0f, 1.0f, 0.01f, this, tr( "Wet/Dry mix" ) ), |
| 49 | m_gateModel( 0.0f, 0.0f, 1.0f, 0.01f, this, tr( "Gate" ) ), |
| 50 | m_autoQuitModel( 1.0f, 1.0f, 8000.0f, 100.0f, 1.0f, this, tr( "Decay" ) ), |
| 51 | m_autoQuitDisabled( false ) |
| 52 | { |
| 53 | m_srcState[0] = m_srcState[1] = NULL; |
| 54 | reinitSRC(); |
| 55 | |
| 56 | if( ConfigManager::inst()->value( "ui", "disableautoquit").toInt() ) |
| 57 | { |
| 58 | m_autoQuitDisabled = true; |
| 59 | } |
| 60 | } |
| 61 | |
| 62 | |
| 63 | |