Klang C++ 0.7.15
Language Reference (draft)
Loading...
Searching...
No Matches
klang::Stereo::Outputabstract

Audio output object (stereo) More...

#include <klang.h>

+ Inheritance diagram for klang::Stereo::Output:

Public Member Functions

virtual ~Output ()
 
virtual const signal & output () const
 
TYPE & operator>> (TYPE &destination)
 
virtual operator const signal & ()
 
virtual operator const signal & () const
 
signal operator+ (TYPE &other)
 
signal operator* (TYPE &other)
 
signal operator- (TYPE &other)
 
signal operator/ (TYPE &other)
 
void reset ()
 

Public Attributes

signal out
 

Detailed Description

Definition at line 5919 of file klang.h.

Constructor & Destructor Documentation

◆ ~Output()

virtual klang::Stereo::Output::~Output ( )
inlinevirtual

Definition at line 5919 of file klang.h.

5919: Generic::Output<signal> { virtual ~Output() {} };
virtual ~Output()
Definition klang.h:5919

References ~Output().

Referenced by ~Output().

Member Function Documentation

◆ operator const signal &() [1/2]

virtual klang::Generic::Output< signal >::operator const signal & ( )
inlinevirtualinherited

Reimplemented in klang::Generic::Generator< signal >, and klang::Generic::Modifier< signal >.

Definition at line 2972 of file klang.h.

2972{ this->process(); return out; } // return processed output

◆ operator const signal &() [2/2]

virtual klang::Generic::Output< signal >::operator const signal & ( ) const
inlinevirtualinherited

Reimplemented in klang::Generic::Generator< signal >, and klang::Generic::Modifier< signal >.

Definition at line 2973 of file klang.h.

2973{ return out; } // return last output

◆ operator*()

signal klang::Generic::Output< signal >::operator* ( TYPE & other)
inlineinherited

Definition at line 2977 of file klang.h.

2977{ this->process(); return out * SIGNAL(other); }

◆ operator+()

signal klang::Generic::Output< signal >::operator+ ( TYPE & other)
inlineinherited

Definition at line 2976 of file klang.h.

2976{ this->process(); return out + SIGNAL(other); }

◆ operator-()

signal klang::Generic::Output< signal >::operator- ( TYPE & other)
inlineinherited

Definition at line 2978 of file klang.h.

2978{ this->process(); return out - SIGNAL(other); }

◆ operator/()

signal klang::Generic::Output< signal >::operator/ ( TYPE & other)
inlineinherited

Definition at line 2979 of file klang.h.

2979{ this->process(); return out / SIGNAL(other); }

◆ operator>>()

TYPE & klang::Generic::Output< signal >::operator>> ( TYPE & destination)
inlineinherited

Definition at line 2969 of file klang.h.

2969{ this->process(); return destination = out; }

◆ output()

virtual const signal & klang::Generic::Output< signal >::output ( ) const
inlinevirtualinherited

Definition at line 2964 of file klang.h.

2964{ return out; }

◆ process()

◆ reset()

void klang::Generic::Output< signal >::reset ( )
inlineinherited

Definition at line 2981 of file klang.h.

2981{ out = 0; }

Member Data Documentation

◆ out

Definition at line 2961 of file klang.h.

2961{ 0.f };