![]() |
Ardour
8.12
|
#include <chan_count.h>
Public Member Functions | |
ChanCount (const XMLNode &node) | |
ChanCount () | |
ChanCount (DataType type, uint32_t count) | |
void | reset () |
void | set (DataType t, uint32_t count) |
uint32_t | get (DataType t) const |
uint32_t | n (DataType t) const |
uint32_t | n_audio () const |
void | set_audio (uint32_t a) |
uint32_t | n_midi () const |
void | set_midi (uint32_t m) |
uint32_t | n_total () const |
bool | operator== (const ChanCount &other) const |
bool | operator!= (const ChanCount &other) const |
bool | operator< (const ChanCount &other) const |
bool | operator<= (const ChanCount &other) const |
bool | operator> (const ChanCount &other) const |
bool | operator>= (const ChanCount &other) const |
ChanCount | operator+ (const ChanCount &other) const |
ChanCount | operator- (const ChanCount &other) const |
ChanCount | operator* (const unsigned int factor) const |
ChanCount & | operator-= (const ChanCount &other) |
ChanCount & | operator+= (const ChanCount &other) |
XMLNode * | state (const std::string &name) const |
Static Public Member Functions | |
static ChanCount | min (const ChanCount &a, const ChanCount &b) |
static ChanCount | max (const ChanCount &a, const ChanCount &b) |
Static Public Attributes | |
static const ChanCount | ZERO |
Private Attributes | |
uint32_t | _counts [DataType::num_types] |
A count of channels, possibly with many types.
Operators are defined so this may safely be used as if it were a simple (single-typed) integer count of channels.
Definition at line 39 of file chan_count.h.
ARDOUR::ChanCount::ChanCount | ( | const XMLNode & | node | ) |
|
inline |
Definition at line 42 of file chan_count.h.
|
inline |
Convenience constructor for making single-typed streams (mono, stereo, midi, etc)
type | data type |
count | number of channels |
Definition at line 48 of file chan_count.h.
|
inline |
query channel count for given type
t | data type |
Definition at line 70 of file chan_count.h.
Definition at line 199 of file chan_count.h.
Definition at line 191 of file chan_count.h.
|
inline |
Definition at line 72 of file chan_count.h.
|
inline |
query number of audio channels
Definition at line 77 of file chan_count.h.
|
inline |
query number of midi channels
Definition at line 87 of file chan_count.h.
|
inline |
query total channel count of all data types
Definition at line 97 of file chan_count.h.
|
inline |
Definition at line 113 of file chan_count.h.
|
inline |
Definition at line 164 of file chan_count.h.
Definition at line 143 of file chan_count.h.
Definition at line 184 of file chan_count.h.
underflow safe subtraction
Definition at line 152 of file chan_count.h.
underflow safe subtraction
Definition at line 173 of file chan_count.h.
|
inline |
Definition at line 117 of file chan_count.h.
|
inline |
Definition at line 126 of file chan_count.h.
|
inline |
Definition at line 105 of file chan_count.h.
|
inline |
Definition at line 130 of file chan_count.h.
|
inline |
Definition at line 139 of file chan_count.h.
|
inline |
zero count of all data types
Definition at line 54 of file chan_count.h.
|
inline |
set channel count for given type
t | data type |
count | number of channels |
Definition at line 64 of file chan_count.h.
|
inline |
set number of audio channels
a | number of audio channels |
Definition at line 82 of file chan_count.h.
|
inline |
set number of audio channels
m | number of midi channels |
Definition at line 92 of file chan_count.h.
XMLNode* ARDOUR::ChanCount::state | ( | const std::string & | name | ) | const |
|
private |
Definition at line 212 of file chan_count.h.
|
static |
Definition at line 209 of file chan_count.h.