Anklang 0.3.0-460-gc4ef46ba
ASE — Anklang Sound Engine (C++)
« « « Anklang Documentation |
Audio parameter handling, internal to AudioProcessor. More...
#include "processor.hh"
Public Types | |
using | Map = std::map< uint32_t, ParameterC > |
Public Member Functions | |
void | clear () |
Clear all fields. | |
void | install (const Map ¶ms) |
Clear and install a new set of parameters. | |
ssize_t | index (uint32_t id) const |
Find index of parameter identified by id or return -1. | |
double | value (uint32_t id) const |
Read current value of parameter identified by id . | |
double | value (uint32_t id, double newval) |
Write new value into parameter identified by id , return old value. | |
bool | dirty (uint32_t id) const |
void | dirty (uint32_t id, bool d) |
bool | dirty_index (uint32_t idx) const |
Check if parameter is dirty (changed). | |
void | dirty_index (uint32_t idx, bool d) |
Set or clear parameter dirty flag. | |
Public Attributes | |
const uint32_t * | ids |
double * | values |
std::atomic< uint64_t > * | bits |
const ParameterC * | parameters |
std::weak_ptr< Property > * | wprops |
uint32 | count |
bool | changed |
Audio parameter handling, internal to AudioProcessor.
Definition at line 54 of file processor.hh.
using Ase::AudioParams::Map = std::map<uint32_t,ParameterC> |
Definition at line 55 of file processor.hh.
Ase::AudioParams::~AudioParams | ( | ) |
Definition at line 38 of file processor.cc.
void Ase::AudioParams::clear | ( | ) |
Definition at line 68 of file processor.hh.
Definition at line 69 of file processor.hh.
Check if parameter is dirty (changed).
Definition at line 355 of file processor.hh.
References uint64_t.
Referenced by Ase::AudioProcessor::check_dirty(), and value().
Set or clear parameter dirty flag.
Definition at line 362 of file processor.hh.
References uint64_t.
Find index of parameter identified by id
or return -1.
Definition at line 318 of file processor.hh.
References Ase::Aux::binary_lookup_insertion_pos().
Referenced by Ase::AudioProcessor::check_dirty(), Ase::AudioProcessor::get_param(), Ase::AudioProcessor::parameter(), Ase::AudioProcessor::peek_param_mt(), Ase::AudioProcessor::send_param(), value(), and value().
void Ase::AudioParams::install | ( | const Map & | params | ) |
Clear and install a new set of parameters.
Definition at line 65 of file processor.cc.
References assert_return, std::map::size(), and uint32_t.
Referenced by Ase::AudioProcessor::install_params().
Read current value of parameter identified by id
.
Definition at line 332 of file processor.hh.
References index().
Referenced by Ase::AudioProcessor::apply_event().
Write new value into parameter identified by id
, return old value.
Definition at line 340 of file processor.hh.
References dirty_index(), and index().
std::atomic<uint64_t>* Ase::AudioParams::bits |
Definition at line 58 of file processor.hh.
bool Ase::AudioParams::changed |
Definition at line 62 of file processor.hh.
uint32 Ase::AudioParams::count |
Definition at line 61 of file processor.hh.
const uint32_t* Ase::AudioParams::ids |
Definition at line 56 of file processor.hh.
const ParameterC* Ase::AudioParams::parameters |
Definition at line 59 of file processor.hh.
double* Ase::AudioParams::values |
Definition at line 57 of file processor.hh.
std::weak_ptr<Property>* Ase::AudioParams::wprops |
Definition at line 60 of file processor.hh.