Gin
Public Member Functions | Public Attributes | List of all members
FuncState Struct Reference

Base class to store an audio functions state But you say "functions don't have state!" Well, that's true, but to make things like filters act as functions, I need to hide a bit of state in them. More...

Inheritance diagram for FuncState:

Public Member Functions

 FuncState (double sr)
 
virtual ~FuncState ()=default
 
virtual void setSampleRate (double sr)
 
virtual void reset ()
 

Public Attributes

double sampleRate = 44100.0
 

Detailed Description

Base class to store an audio functions state But you say "functions don't have state!" Well, that's true, but to make things like filters act as functions, I need to hide a bit of state in them.

Constructor & Destructor Documentation

◆ FuncState()

FuncState::FuncState ( double  sr)

◆ ~FuncState()

virtual FuncState::~FuncState ( )
virtualdefault

Member Function Documentation

◆ setSampleRate()

virtual void FuncState::setSampleRate ( double  sr)
virtual

References sampleRate.

◆ reset()

virtual void FuncState::reset ( )
virtual

Member Data Documentation

◆ sampleRate

double FuncState::sampleRate = 44100.0

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