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

Method Effect

src/core/Effect.cpp:36–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34
35
36Effect::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

Callers

nothing calls this directly

Calls 3

KeyClass · 0.50
instFunction · 0.50
valueMethod · 0.45

Tested by

no test coverage detected