hydrogen 1.1.1
LadspaFX Class Reference

#include <LadspaFX.h>

Inheritance diagram for LadspaFX:
Object

Public Types

enum  { MONO_FX , STEREO_FX , UNDEFINED }
 

Public Member Functions

 ~LadspaFX ()
 
void connectAudioPorts (float *pIn_L, float *pIn_R, float *pOut_L, float *pOut_R)
 
void activate ()
 
void deactivate ()
 
void processFX (unsigned nFrames)
 
const QString & getPluginLabel ()
 
const QString & getPluginName ()
 
void setPluginName (const QString &sName)
 
const QString & getLibraryPath ()
 
bool isEnabled ()
 
void setEnabled (bool value)
 
int getPluginType ()
 
void setVolume (float fValue)
 
float getVolume ()
 
- 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 LadspaFXload (const QString &sLibraryPath, const QString &sPluginLabel, long nSampleRate)
 
- 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...
 

Data Fields

float * m_pBuffer_L
 
float * m_pBuffer_R
 
std::vector< LadspaControlPort * > inputControlPorts
 
std::vector< LadspaControlPort * > outputControlPorts
 

Private Member Functions

 LadspaFX (const QString &sLibraryPath, const QString &sPluginLabel)
 

Private Attributes

bool m_pluginType
 
bool m_bEnabled
 
bool m_bActivated
 
QString m_sLabel
 
QString m_sName
 
QString m_sLibraryPath
 
QLibrary * m_pLibrary
 
const LADSPA_Descriptor * m_d
 
LADSPA_Handle m_handle
 
float m_fVolume
 
unsigned m_nICPorts
 input control port More...
 
unsigned m_nOCPorts
 output control port More...
 
unsigned m_nIAPorts
 input audio port More...
 
unsigned m_nOAPorts
 output audio port 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...
 

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
MONO_FX 
STEREO_FX 
UNDEFINED 

Constructor & Destructor Documentation

◆ ~LadspaFX()

~LadspaFX ( )

◆ LadspaFX()

LadspaFX ( const QString &  sLibraryPath,
const QString &  sPluginLabel 
)
private

Member Function Documentation

◆ activate()

void activate ( )

◆ connectAudioPorts()

void connectAudioPorts ( float *  pIn_L,
float *  pIn_R,
float *  pOut_L,
float *  pOut_R 
)

◆ deactivate()

void deactivate ( )

◆ getLibraryPath()

const QString & getLibraryPath ( )
inline

◆ getPluginLabel()

const QString & getPluginLabel ( )
inline

◆ getPluginName()

const QString & getPluginName ( )
inline

◆ getPluginType()

int getPluginType ( )
inline

◆ getVolume()

float getVolume ( )
inline

◆ isEnabled()

bool isEnabled ( )
inline

◆ load()

LadspaFX * load ( const QString &  sLibraryPath,
const QString &  sPluginLabel,
long  nSampleRate 
)
static

◆ processFX()

void processFX ( unsigned  nFrames)

◆ setEnabled()

void setEnabled ( bool  value)
inline

◆ setPluginName()

void setPluginName ( const QString &  sName)
inline

◆ setVolume()

void setVolume ( float  fValue)

Field Documentation

◆ inputControlPorts

std::vector<LadspaControlPort*> inputControlPorts

◆ m_bActivated

bool m_bActivated
private

◆ m_bEnabled

bool m_bEnabled
private

◆ m_d

const LADSPA_Descriptor* m_d
private

◆ m_fVolume

float m_fVolume
private

◆ m_handle

LADSPA_Handle m_handle
private

◆ m_nIAPorts

unsigned m_nIAPorts
private

input audio port

◆ m_nICPorts

unsigned m_nICPorts
private

input control port

◆ m_nOAPorts

unsigned m_nOAPorts
private

output audio port

◆ m_nOCPorts

unsigned m_nOCPorts
private

output control port

◆ m_pBuffer_L

float* m_pBuffer_L

◆ m_pBuffer_R

float* m_pBuffer_R

◆ m_pLibrary

QLibrary* m_pLibrary
private

◆ m_pluginType

bool m_pluginType
private

◆ m_sLabel

QString m_sLabel
private

◆ m_sLibraryPath

QString m_sLibraryPath
private

◆ m_sName

QString m_sName
private

◆ outputControlPorts

std::vector<LadspaControlPort*> outputControlPorts