Anklang C++ API 0.0.0
Loading...
Searching...
No Matches
AudioParamsfinal

#include "processor.hh"

Public Types

usingMap = std::map< uint32_t, ParameterC >

Public Member Functions

voidclear ()
booldirty (uint32_t id) const
voiddirty (uint32_t id, bool d)
booldirty_index (uint32_t idx) const
voiddirty_index (uint32_t idx, bool d)
ssize_tindex (uint32_t id) const
voidinstall (const Map &params)
doublevalue (uint32_t id) const
doublevalue (uint32_t id, double newval)
~AudioParams ()

Public Attributes

std::atomic< uint64_t > *bits
boolchanged
uint32count
const uint32_t *ids
const ParameterC *parameters
double *values
std::weak_ptr< Property > *wprops

Detailed Description

Audio parameter handling, internal to AudioProcessor.

Member Typedef Documentation

Map

using Map = std::map<uint32_t,ParameterC>

Constructor & Destructor Documentation

~AudioParams()

Member Function Documentation

clear()

void clear ( )

Clear all fields.

install()

void install ( const Map & params)

Clear and install a new set of parameters.

index()

ssize_t index ( uint32_t id) const

Find index of parameter identified by `id` or return -1.

value() [1/2]

double value ( uint32_t id) const

Read current value of parameter identified by `id`.

value() [2/2]

double value ( uint32_t id,
double newval
)

Write new value into parameter identified by `id`, return old value.

dirty() [1/2]

bool dirty ( uint32_t id) const

dirty() [2/2]

void dirty ( uint32_t id,
bool d
)

dirty_index() [1/2]

bool dirty_index ( uint32_t idx) const

Check if parameter is dirty (changed).

dirty_index() [2/2]

void dirty_index ( uint32_t idx,
bool d
)

Set or clear parameter dirty flag.

Member Data Documentation

ids

const uint32_t* ids

values

double* values

bits

std::atomic<uint64_t>* bits

parameters

const ParameterC* parameters

wprops

std::weak_ptr<Property>* wprops

count

uint32 count

changed

bool changed