Vital
Loading...
Searching...
No Matches
vital::ProcessorState Struct Reference

Holds shared state regarding sample rate, oversampling, and other flags. More...

#include <processor.h>

Public Member Functions

 ProcessorState ()
 Default constructor, initializes to default sample rate and no oversampling.
 

Public Attributes

int sample_rate
 The current sample rate (may include oversampling factor).
 
int oversample_amount
 Oversampling factor.
 
bool control_rate
 True if running at control rate (usually buffer_size == 1).
 
bool enabled
 Whether this Processor is currently enabled or not.
 
bool initialized
 Whether this Processor has been initialized.
 

Detailed Description

Holds shared state regarding sample rate, oversampling, and other flags.

Multiple Processors may reference the same state if they share sample rate, etc.

Constructor & Destructor Documentation

◆ ProcessorState()

vital::ProcessorState::ProcessorState ( )
inline

Default constructor, initializes to default sample rate and no oversampling.

Member Data Documentation

◆ control_rate

bool vital::ProcessorState::control_rate

True if running at control rate (usually buffer_size == 1).

◆ enabled

bool vital::ProcessorState::enabled

Whether this Processor is currently enabled or not.

◆ initialized

bool vital::ProcessorState::initialized

Whether this Processor has been initialized.

◆ oversample_amount

int vital::ProcessorState::oversample_amount

Oversampling factor.

◆ sample_rate

int vital::ProcessorState::sample_rate

The current sample rate (may include oversampling factor).


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