Commit 760bf6ce authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

Effect: Don't assume effect was loaded when creating an instance.

Factory now handles Mixer2 type.
parent 328c6bd4
......@@ -22,6 +22,7 @@
#include "Effect.h"
#include "FilterInstance.h"
#include "MixerInstance.h"
#include <QtDebug>
......@@ -142,10 +143,12 @@ EffectInstance*
Effect::createInstance()
{
m_instCount.fetchAndAddAcquire( 1 );
switch ( m_type )
switch ( type() )
{
case Filter:
return new FilterInstance( this );
case Mixer2:
return new MixerInstance( this );
default:
return NULL;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment