Klang C++
Language Reference (draft)
Loading...
Searching...
No Matches
klang::Generic::Input< SIGNAL >

Audio input object. More...

#include <klang.h>

+ Inheritance diagram for klang::Generic::Input< SIGNAL >:

Public Member Functions

virtual ~Input ()
 
virtual const SIGNAL & input () const
 
virtual void operator<< (const SIGNAL &source)
 
virtual void input (const SIGNAL &source)
 

Public Attributes

SIGNAL in = { 0.f }
 

Detailed Description

template<typename SIGNAL>
struct klang::Generic::Input< SIGNAL >

Definition at line 1338 of file klang.h.

Constructor & Destructor Documentation

◆ ~Input()

template<typename SIGNAL >
virtual klang::Generic::Input< SIGNAL >::~Input ( )
inlinevirtual

Reimplemented in klang::Stereo::Input.

Definition at line 1339 of file klang.h.

1339{ }

Member Function Documentation

◆ input() [1/3]

template<typename SIGNAL >
virtual void klang::Generic::Input< SIGNAL >::input ( )
inlineprotectedvirtual

◆ input() [2/3]

template<typename SIGNAL >
virtual const SIGNAL & klang::Generic::Input< SIGNAL >::input ( ) const
inlinevirtual

Reimplemented in klang::Generic::Graph< SIZE >::Series.

Definition at line 1343 of file klang.h.

1343{ return in; }

References klang::Generic::Input< SIGNAL >::in.

◆ input() [3/3]

template<typename SIGNAL >
virtual void klang::Generic::Input< SIGNAL >::input ( const SIGNAL & source)
inlinevirtual

Definition at line 1347 of file klang.h.

1347{ in = source; input(); }
virtual const SIGNAL & input() const
Definition klang.h:1343

References klang::Generic::Input< SIGNAL >::in.

Referenced by klang::Effect::process(), and klang::Stereo::Effect::process().

◆ operator<<()

template<typename SIGNAL >
virtual void klang::Generic::Input< SIGNAL >::operator<< ( const SIGNAL & source)
inlinevirtual

Definition at line 1346 of file klang.h.

1346{ in = source; input(); }

References klang::Generic::Input< SIGNAL >::in.

Member Data Documentation

◆ in

template<typename SIGNAL >
SIGNAL klang::Generic::Input< SIGNAL >::in = { 0.f }