Ardour
9.0-pre0-582-g084a23a80d
|
#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 38 of file chan_count.h.
ARDOUR::ChanCount::ChanCount | ( | const XMLNode & | node | ) |
|
inline |
Definition at line 41 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 47 of file chan_count.h.
|
inline |
query channel count for given type
t | data type |
Definition at line 69 of file chan_count.h.
Definition at line 198 of file chan_count.h.
Definition at line 190 of file chan_count.h.
|
inline |
Definition at line 71 of file chan_count.h.
|
inline |
query number of audio channels
Definition at line 76 of file chan_count.h.
|
inline |
query number of midi channels
Definition at line 86 of file chan_count.h.
|
inline |
query total channel count of all data types
Definition at line 96 of file chan_count.h.
|
inline |
Definition at line 112 of file chan_count.h.
|
inline |
Definition at line 163 of file chan_count.h.
Definition at line 142 of file chan_count.h.
Definition at line 183 of file chan_count.h.
underflow safe subtraction
Definition at line 151 of file chan_count.h.
underflow safe subtraction
Definition at line 172 of file chan_count.h.
|
inline |
Definition at line 116 of file chan_count.h.
|
inline |
Definition at line 125 of file chan_count.h.
|
inline |
Definition at line 104 of file chan_count.h.
|
inline |
Definition at line 129 of file chan_count.h.
|
inline |
Definition at line 138 of file chan_count.h.
|
inline |
zero count of all data types
Definition at line 53 of file chan_count.h.
|
inline |
set channel count for given type
t | data type |
count | number of channels |
Definition at line 63 of file chan_count.h.
|
inline |
set number of audio channels
a | number of audio channels |
Definition at line 81 of file chan_count.h.
|
inline |
set number of audio channels
m | number of midi channels |
Definition at line 91 of file chan_count.h.
XMLNode* ARDOUR::ChanCount::state | ( | const std::string & | name | ) | const |
|
private |
Definition at line 211 of file chan_count.h.
|
static |
Definition at line 208 of file chan_count.h.