Anklang 0.3.0-460-gc4ef46ba
ASE — Anklang Sound Engine (C++)

« « « Anklang Documentation
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Public Attributes | List of all members
Ase::AudioParams Struct Referencefinal

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 &params)
 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_tids
 
doublevalues
 
std::atomic< uint64_t > * bits
 
const ParameterCparameters
 
std::weak_ptr< Property > * wprops
 
uint32 count
 
bool changed
 

Detailed Description

Audio parameter handling, internal to AudioProcessor.

Definition at line 54 of file processor.hh.

Member Typedef Documentation

◆ Map

Definition at line 55 of file processor.hh.

Constructor & Destructor Documentation

◆ ~AudioParams()

Ase::AudioParams::~AudioParams ( )

Definition at line 38 of file processor.cc.

Member Function Documentation

◆ clear()

void Ase::AudioParams::clear ( )

Clear all fields.

Definition at line 45 of file processor.cc.

References std::swap().

◆ dirty() [1/2]

bool Ase::AudioParams::dirty ( uint32_t  id) const

Definition at line 68 of file processor.hh.

◆ dirty() [2/2]

void Ase::AudioParams::dirty ( uint32_t  id,
bool  d 
)

Definition at line 69 of file processor.hh.

◆ dirty_index() [1/2]

bool Ase::AudioParams::dirty_index ( uint32_t  idx) const

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().

◆ dirty_index() [2/2]

void Ase::AudioParams::dirty_index ( uint32_t  idx,
bool  d 
)

Set or clear parameter dirty flag.

Definition at line 362 of file processor.hh.

References uint64_t.

◆ index()

ssize_t Ase::AudioParams::index ( uint32_t  id) const

◆ install()

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().

◆ value() [1/2]

double Ase::AudioParams::value ( uint32_t  id) const

Read current value of parameter identified by id.

Definition at line 332 of file processor.hh.

References index().

Referenced by Ase::AudioProcessor::apply_event().

◆ value() [2/2]

double Ase::AudioParams::value ( uint32_t  id,
double  newval 
)

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

Definition at line 340 of file processor.hh.

References dirty_index(), and index().

Member Data Documentation

◆ bits

std::atomic<uint64_t>* Ase::AudioParams::bits

Definition at line 58 of file processor.hh.

◆ changed

bool Ase::AudioParams::changed

Definition at line 62 of file processor.hh.

◆ count

uint32 Ase::AudioParams::count

Definition at line 61 of file processor.hh.

◆ ids

const uint32_t* Ase::AudioParams::ids

Definition at line 56 of file processor.hh.

◆ parameters

const ParameterC* Ase::AudioParams::parameters

Definition at line 59 of file processor.hh.

◆ values

double* Ase::AudioParams::values

Definition at line 57 of file processor.hh.

◆ wprops

std::weak_ptr<Property>* Ase::AudioParams::wprops

Definition at line 60 of file processor.hh.


The documentation for this struct was generated from the following files: