hydrogen 1.1.1
Effects Class Reference

#include <Effects.h>

Inheritance diagram for Effects:
Object

Public Member Functions

 ~Effects ()
 
LadspaFXgetLadspaFX (int nFX)
 
void setLadspaFX (LadspaFX *pFX, int nFX)
 
std::vector< LadspaFXInfo * > getPluginList ()
 Loads only usable plugins. More...
 
LadspaFXGroupgetLadspaFXGroup ()
 
- Public Member Functions inherited from Object
 ~Object ()
 destructor More...
 
 Object (const Object &obj)
 copy constructor More...
 
 Object (const char *class_name)
 constructor More...
 
const char * class_name () const
 return the class name More...
 
virtual QString toQString (const QString &sPrefix, bool bShort=true) const
 Formatted string version for debugging purposes. More...
 
void Print (bool bShort=true) const
 Prints content of toQString() via DEBUGLOG. More...
 

Static Public Member Functions

static void create_instance ()
 If __instance equals 0, a new Effects singleton will be created and stored in it. More...
 
static Effectsget_instance ()
 Returns a pointer to the current Effects singleton stored in __instance. More...
 
- Static Public Member Functions inherited from Object
static void set_count (bool flag)
 enable/disable class instances counting More...
 
static bool count_active ()
 return true if class instances counting is enabled More...
 
static unsigned objects_count ()
 return the number of objects More...
 
static void write_objects_map_to (std::ostream &out)
 output the full objects map to a given ostream More...
 
static void write_objects_map_to_cerr ()
 output objects map to stderr More...
 
static int bootstrap (Logger *logger, bool count=false)
 must be called before any Object instantiation ! More...
 
static Loggerlogger ()
 return the logger instance More...
 

Private Member Functions

void updateRecentGroup ()
 
 Effects ()
 
void RDFDescend (const QString &sBase, LadspaFXGroup *pGroup, std::vector< LadspaFXInfo * > pluginList)
 
void getRDF (LadspaFXGroup *pGroup, std::vector< LadspaFXInfo * > pluginList)
 

Private Attributes

std::vector< LadspaFXInfo * > m_pluginList
 
LadspaFXGroupm_pRootGroup
 
LadspaFXGroupm_pRecentGroup
 
LadspaFXm_FXList [MAX_FX]
 

Static Private Attributes

static Effects__instance = nullptr
 Object holding the current Effects singleton. More...
 

Additional Inherited Members

- Static Public Attributes inherited from Object
static QString sPrintIndention = " "
 String used to format the debugging string output of some core classes. More...
 
- Static Protected Attributes inherited from Object
static Logger__logger = nullptr
 logger instance pointer More...
 

Constructor & Destructor Documentation

◆ ~Effects()

~Effects ( )

◆ Effects()

Effects ( )
private

Member Function Documentation

◆ create_instance()

void create_instance ( )
static

If __instance equals 0, a new Effects singleton will be created and stored in it.

It is called in Hydrogen::audioEngine_init().

◆ get_instance()

static Effects * get_instance ( )
inlinestatic

Returns a pointer to the current Effects singleton stored in __instance.

◆ getLadspaFX()

LadspaFX * getLadspaFX ( int  nFX)

◆ getLadspaFXGroup()

LadspaFXGroup * getLadspaFXGroup ( )

◆ getPluginList()

std::vector< LadspaFXInfo * > getPluginList ( )

Loads only usable plugins.

◆ getRDF()

void getRDF ( LadspaFXGroup pGroup,
std::vector< LadspaFXInfo * >  pluginList 
)
private

◆ RDFDescend()

void RDFDescend ( const QString &  sBase,
LadspaFXGroup pGroup,
std::vector< LadspaFXInfo * >  pluginList 
)
private

◆ setLadspaFX()

void setLadspaFX ( LadspaFX pFX,
int  nFX 
)

◆ updateRecentGroup()

void updateRecentGroup ( )
private

Field Documentation

◆ __instance

Effects * __instance = nullptr
staticprivate

Object holding the current Effects singleton.

It is initialized with NULL, set with create_instance(), and accessed with get_instance().

◆ m_FXList

LadspaFX* m_FXList[MAX_FX]
private

◆ m_pluginList

std::vector<LadspaFXInfo*> m_pluginList
private

◆ m_pRecentGroup

LadspaFXGroup* m_pRecentGroup
private

◆ m_pRootGroup

LadspaFXGroup* m_pRootGroup
private