|
hydrogen 1.2.6
|
#include <DrumkitComponent.h>
Public Member Functions | |
| DrumkitComponent (const int id, const QString &name) | |
| DrumkitComponent (std::shared_ptr< DrumkitComponent > other) | |
| ~DrumkitComponent () | |
| int | get_id () const |
| const QString & | get_name () const |
| Access the name of the DrumkitComponent. | |
| float | get_out_L (int nBufferPos) |
| float | get_out_R (int nBufferPos) |
| float | get_peak_l () const |
| float | get_peak_r () const |
| float | get_volume () const |
| bool | is_muted () const |
| bool | is_soloed () const |
| void | load_from (std::shared_ptr< DrumkitComponent > component) |
| void | reset_outs (uint32_t nFrames) |
| void | save_to (XMLNode *node) |
| void | set_id (const int id) |
| void | set_muted (bool active) |
| void | set_name (const QString &name) |
| Sets the name of the DrumkitComponent __name. | |
| void | set_outs (int nBufferPos, float valL, float valR) |
| void | set_peak_l (float val) |
| void | set_peak_r (float val) |
| void | set_soloed (bool soloed) |
| void | set_volume (float volume) |
| QString | toQString (const QString &sPrefix="", bool bShort=true) const override |
| Formatted string version for debugging purposes. | |
Public Member Functions inherited from Object< DrumkitComponent > | |
| Object () | |
| Object (const Object< DrumkitComponent > &other) | |
Public Member Functions inherited from Base | |
| Base () | |
| Base (const Base &other) | |
| virtual const char * | class_name () const |
| void | logBacktrace () const |
| Print the current stack at point into the debug log. | |
| void | Print (bool bShort=true) const |
| Prints content of toQString() via DEBUGLOG. | |
Static Public Member Functions | |
| static std::shared_ptr< DrumkitComponent > | load_from (XMLNode *node, bool *pLegacyFormatEncountered=nullptr) |
Static Public Member Functions inherited from Base | |
| static const char * | _class_name () |
| return the class name | |
| static QString | base_clock (const QString &sMsg) |
| Measures the current time and stores it in __last_clock. | |
| static QString | base_clock_in (const QString &sMsg) |
| static int | bootstrap (Logger *logger, bool count=false) |
| must be called before any Object instantiation ! | |
| static bool | count_active () |
| static int | getAliveObjectCount () |
| static object_map_t | getObjectMap () |
| static Logger * | logger () |
| return the logger instance | |
| static int | objects_count () |
| static void | printObjectMapDiff (object_map_t map) |
| Creates the difference between a snapshot of the object map and its current state and prints it to std::cout. | |
| static void | set_count (bool flag) |
| enable/disable class instances counting | |
| static void | write_objects_map_to (std::ostream &out, object_map_t *map=nullptr) |
| output the full objects map to a given ostream | |
| static void | write_objects_map_to_cerr () |
| output objects map to stderr | |
Private Attributes | |
| int | __id |
| bool | __muted |
| QString | __name |
| Name of the DrumkitComponent. | |
| float * | __out_L |
| float * | __out_R |
| float | __peak_l |
| float | __peak_r |
| bool | __soloed |
| float | __volume |
Additional Inherited Members | |
Static Public Attributes inherited from Base | |
| static QString | sPrintIndention = " " |
| String used to format the debugging string output of some core classes. | |
Protected Member Functions inherited from Object< DrumkitComponent > | |
| ~Object () | |
Protected Member Functions inherited from Base | |
| ~Base () | |
Static Protected Member Functions inherited from Base | |
| static void | registerClass (const char *name, const atomic_obj_cpt_t *counters) |
Static Protected Attributes inherited from Base | |
| static bool | __count = false |
| should we count class instances | |
| static timeval | __last_clock = { 0, 0 } |
| static Logger * | __logger = nullptr |
| static bool | bLogColors = true |
Definition at line 40 of file DrumkitComponent.h.
| DrumkitComponent | ( | const int | id, |
| const QString & | name ) |
Definition at line 44 of file DrumkitComponent.cpp.
| DrumkitComponent | ( | std::shared_ptr< DrumkitComponent > | other | ) |
Definition at line 59 of file DrumkitComponent.cpp.
| ~DrumkitComponent | ( | ) |
Definition at line 74 of file DrumkitComponent.cpp.
|
inline |
Definition at line 123 of file DrumkitComponent.h.
|
inline |
Access the name of the DrumkitComponent.
Definition at line 113 of file DrumkitComponent.h.
| float get_out_L | ( | int | nBufferPos | ) |
Definition at line 86 of file DrumkitComponent.cpp.
| float get_out_R | ( | int | nBufferPos | ) |
Definition at line 91 of file DrumkitComponent.cpp.
|
inline |
Definition at line 163 of file DrumkitComponent.h.
|
inline |
Definition at line 173 of file DrumkitComponent.h.
|
inline |
Definition at line 133 of file DrumkitComponent.h.
|
inline |
Definition at line 143 of file DrumkitComponent.h.
|
inline |
Definition at line 153 of file DrumkitComponent.h.
| void load_from | ( | std::shared_ptr< DrumkitComponent > | component | ) |
Definition at line 96 of file DrumkitComponent.cpp.
|
static |
Definition at line 104 of file DrumkitComponent.cpp.
| void reset_outs | ( | uint32_t | nFrames | ) |
Definition at line 80 of file DrumkitComponent.cpp.
| void save_to | ( | XMLNode * | node | ) |
Definition at line 123 of file DrumkitComponent.cpp.
|
inline |
Definition at line 118 of file DrumkitComponent.h.
|
inline |
Definition at line 138 of file DrumkitComponent.h.
|
inline |
Sets the name of the DrumkitComponent __name.
| name | New name. |
Definition at line 107 of file DrumkitComponent.h.
|
inline |
Definition at line 178 of file DrumkitComponent.h.
|
inline |
Definition at line 158 of file DrumkitComponent.h.
|
inline |
Definition at line 168 of file DrumkitComponent.h.
|
inline |
Definition at line 148 of file DrumkitComponent.h.
|
inline |
Definition at line 128 of file DrumkitComponent.h.
|
overridevirtual |
Formatted string version for debugging purposes.
| sPrefix | String prefix which will be added in front of every new line |
| bShort | Instead of the whole content of all classes stored as members just a single unique identifier will be displayed without line breaks. |
Reimplemented from Base.
Definition at line 131 of file DrumkitComponent.cpp.
|
private |
Definition at line 89 of file DrumkitComponent.h.
|
private |
Definition at line 94 of file DrumkitComponent.h.
|
private |
Name of the DrumkitComponent.
It is set by set_name() and accessed via get_name().
Definition at line 92 of file DrumkitComponent.h.
|
private |
Definition at line 100 of file DrumkitComponent.h.
|
private |
Definition at line 101 of file DrumkitComponent.h.
|
private |
Definition at line 97 of file DrumkitComponent.h.
|
private |
Definition at line 98 of file DrumkitComponent.h.
|
private |
Definition at line 95 of file DrumkitComponent.h.
|
private |
Definition at line 93 of file DrumkitComponent.h.