Guitarix
ladspa::PortDesc Class Reference

#include <ladspaback.h>

Collaboration diagram for ladspa::PortDesc:

Public Member Functions

void set_range_default (const LADSPA_PortRangeHint &h, ChangeableValues &store)
 
void set_default_value (const LADSPA_PortRangeHint &h, ChangeableValues &store)
 
void set_tp_default (const LADSPA_PortRangeHint &h, ChangeableValues &store)
 
float calc_step ()
 
void set_default (float value, Glib::ustring label)
 
void output (gx_system::JsonWriter &jw)
 
 PortDesc (int idx_, int pos_, bool is_output_, Glib::ustring name, const LADSPA_PortRangeHint &hint)
 
 PortDesc (gx_system::JsonParser &jp)
 
void serializeJSON (gx_system::JsonWriter &jw)
 
void reset ()
 
void fixup (bool newrow)
 
bool check_changed (const PortDesc &vp) const
 
Glib::ustring get_enum (int idx)
 
DisplayType get_tp ()
 
float get_low ()
 
float get_up ()
 
float get_dflt ()
 
bool get_newrow ()
 
const Glib::ustring & get_name ()
 
int get_pos ()
 
void set_low (float v)
 
void set_up (float v)
 
void set_dflt (float v)
 
void set_tp (DisplayType v)
 
void set_newrow (bool v)
 
bool has_settings ()
 
bool enumkey_changed (int k)
 
bool is_set (int f)
 
void set_state (gx_system::JsonParser &jp, int version)
 

Public Attributes

int idx
 
int pos
 
bool is_output
 
LADSPA_PortRangeHintDescriptor hint_desc
 
bool fake_low
 
bool fake_up
 
bool fake_dflt
 
step_mode step
 
bool use_sr
 
bool has_sr
 
bool has_caption
 
ChangeableValues factory
 
ChangeableValues user
 

Static Public Attributes

static const int SR = 44100
 

Friends

bool cmp_ctrl_ports (const PortDesc *a, const PortDesc *b)
 

Detailed Description

Definition at line 77 of file ladspaback.h.

Constructor & Destructor Documentation

◆ PortDesc() [1/2]

ladspa::PortDesc::PortDesc ( int  idx_,
int  pos_,
bool  is_output_,
Glib::ustring  name,
const LADSPA_PortRangeHint hint 
)

◆ PortDesc() [2/2]

ladspa::PortDesc::PortDesc ( gx_system::JsonParser jp)

Definition at line 209 of file ladspaback.cpp.

Member Function Documentation

◆ calc_step()

float ladspa::PortDesc::calc_step ( )

Definition at line 531 of file ladspaback.cpp.

Referenced by output().

◆ check_changed()

bool ladspa::PortDesc::check_changed ( const PortDesc vp) const

Definition at line 382 of file ladspaback.cpp.

◆ enumkey_changed()

bool ladspa::PortDesc::enumkey_changed ( int  k)
inline

Definition at line 123 of file ladspaback.h.

◆ fixup()

void ladspa::PortDesc::fixup ( bool  newrow)

Definition at line 420 of file ladspaback.cpp.

◆ get_dflt()

float ladspa::PortDesc::get_dflt ( )
inline

Definition at line 113 of file ladspaback.h.

Referenced by output().

◆ get_enum()

ustring ladspa::PortDesc::get_enum ( int  idx)

Definition at line 369 of file ladspaback.cpp.

Referenced by output().

◆ get_low()

float ladspa::PortDesc::get_low ( )
inline

Definition at line 111 of file ladspaback.h.

Referenced by calc_step(), output(), and set_default_value().

◆ get_name()

const Glib::ustring& ladspa::PortDesc::get_name ( )
inline

Definition at line 115 of file ladspaback.h.

Referenced by set_tp_default().

◆ get_newrow()

bool ladspa::PortDesc::get_newrow ( )
inline

Definition at line 114 of file ladspaback.h.

Referenced by output().

◆ get_pos()

int ladspa::PortDesc::get_pos ( )
inline

Definition at line 116 of file ladspaback.h.

◆ get_tp()

DisplayType ladspa::PortDesc::get_tp ( )
inline

Definition at line 110 of file ladspaback.h.

Referenced by calc_step(), has_settings(), and output().

◆ get_up()

float ladspa::PortDesc::get_up ( )
inline

Definition at line 112 of file ladspaback.h.

Referenced by calc_step(), output(), and set_default_value().

◆ has_settings()

bool ladspa::PortDesc::has_settings ( )

Definition at line 416 of file ladspaback.cpp.

◆ is_set()

bool ladspa::PortDesc::is_set ( int  f)
inline

Definition at line 124 of file ladspaback.h.

◆ output()

void ladspa::PortDesc::output ( gx_system::JsonWriter jw)

Definition at line 593 of file ladspaback.cpp.

◆ reset()

void ladspa::PortDesc::reset ( void  )

Definition at line 321 of file ladspaback.cpp.

◆ serializeJSON()

void ladspa::PortDesc::serializeJSON ( gx_system::JsonWriter jw)

Definition at line 241 of file ladspaback.cpp.

◆ set_default()

void ladspa::PortDesc::set_default ( float  value,
Glib::ustring  label 
)

Definition at line 587 of file ladspaback.cpp.

◆ set_default_value()

void ladspa::PortDesc::set_default_value ( const LADSPA_PortRangeHint h,
ChangeableValues store 
)

Definition at line 259 of file ladspaback.cpp.

◆ set_dflt()

void ladspa::PortDesc::set_dflt ( float  v)

Definition at line 345 of file ladspaback.cpp.

◆ set_low()

void ladspa::PortDesc::set_low ( float  v)

Definition at line 329 of file ladspaback.cpp.

◆ set_newrow()

void ladspa::PortDesc::set_newrow ( bool  v)

Definition at line 361 of file ladspaback.cpp.

◆ set_range_default()

void ladspa::PortDesc::set_range_default ( const LADSPA_PortRangeHint h,
ChangeableValues store 
)

Definition at line 303 of file ladspaback.cpp.

◆ set_state()

void ladspa::PortDesc::set_state ( gx_system::JsonParser jp,
int  version 
)

Definition at line 635 of file ladspaback.cpp.

◆ set_tp()

void ladspa::PortDesc::set_tp ( DisplayType  v)

Definition at line 353 of file ladspaback.cpp.

◆ set_tp_default()

void ladspa::PortDesc::set_tp_default ( const LADSPA_PortRangeHint h,
ChangeableValues store 
)

Definition at line 567 of file ladspaback.cpp.

◆ set_up()

void ladspa::PortDesc::set_up ( float  v)

Definition at line 337 of file ladspaback.cpp.

Friends And Related Function Documentation

◆ cmp_ctrl_ports

bool cmp_ctrl_ports ( const PortDesc a,
const PortDesc b 
)
friend

Definition at line 865 of file ladspaback.cpp.

Member Data Documentation

◆ factory

◆ fake_dflt

bool ladspa::PortDesc::fake_dflt

Definition at line 86 of file ladspaback.h.

Referenced by check_changed(), fixup(), PortDesc(), serializeJSON(), and set_dflt().

◆ fake_low

bool ladspa::PortDesc::fake_low

Definition at line 84 of file ladspaback.h.

Referenced by check_changed(), fixup(), PortDesc(), serializeJSON(), and set_low().

◆ fake_up

bool ladspa::PortDesc::fake_up

Definition at line 85 of file ladspaback.h.

Referenced by check_changed(), fixup(), PortDesc(), serializeJSON(), and set_up().

◆ has_caption

bool ladspa::PortDesc::has_caption

Definition at line 90 of file ladspaback.h.

Referenced by check_changed(), has_settings(), output(), PortDesc(), reset(), serializeJSON(), and set_state().

◆ has_sr

bool ladspa::PortDesc::has_sr

Definition at line 89 of file ladspaback.h.

Referenced by calc_step(), check_changed(), output(), PortDesc(), reset(), serializeJSON(), and set_state().

◆ hint_desc

LADSPA_PortRangeHintDescriptor ladspa::PortDesc::hint_desc

Definition at line 83 of file ladspaback.h.

Referenced by fixup(), PortDesc(), reset(), serializeJSON(), set_default_value(), and set_tp_default().

◆ idx

int ladspa::PortDesc::idx

Definition at line 80 of file ladspaback.h.

Referenced by get_enum(), output(), PortDesc(), and serializeJSON().

◆ is_output

bool ladspa::PortDesc::is_output

Definition at line 82 of file ladspaback.h.

Referenced by PortDesc(), serializeJSON(), and set_tp_default().

◆ pos

int ladspa::PortDesc::pos

Definition at line 81 of file ladspaback.h.

Referenced by check_changed(), ladspa::cmp_ctrl_ports(), PortDesc(), and serializeJSON().

◆ SR

const int ladspa::PortDesc::SR = 44100
static

Definition at line 93 of file ladspaback.h.

Referenced by calc_step(), output(), and set_state().

◆ step

step_mode ladspa::PortDesc::step

◆ use_sr

bool ladspa::PortDesc::use_sr

◆ user


The documentation for this class was generated from the following files: