Klang C++
Language Reference (draft)
Loading...
Searching...
No Matches
klang::Stereo::Bank< TYPE >

Stereo audio object adapter. More...

#include <klang.h>

+ Inheritance diagram for klang::Stereo::Bank< TYPE >:

Public Member Functions

TYPE & operator[] (int index)
 
const TYPE & operator[] (int index) const
 
void set (Args... args)
 
void input () override
 
void process () override
 

Public Attributes

TYPE items [COUNT]
 

Detailed Description

template<class TYPE>
struct klang::Stereo::Bank< TYPE >

Definition at line 3468 of file klang.h.

Member Function Documentation

◆ input()

void klang::Bank< TYPE, COUNT >::input ( )
inlineoverrideinherited

Definition at line 2015 of file klang.h.

2015 {
2016 for (int n = 0; n < COUNT; n++)
2017 in[n] >> items[n];
2018 }
TYPE items[COUNT]
Definition klang.h:2004

◆ operator[]() [1/2]

TYPE & klang::Bank< TYPE, COUNT >::operator[] ( int index)
inlineinherited

Definition at line 2006 of file klang.h.

2006{ return items[index]; }

◆ operator[]() [2/2]

const TYPE & klang::Bank< TYPE, COUNT >::operator[] ( int index) const
inlineinherited

Definition at line 2007 of file klang.h.

2007{ return items[index]; }

◆ process()

void klang::Bank< TYPE, COUNT >::process ( )
inlineoverrideinherited

Definition at line 2020 of file klang.h.

2020 {
2021 for (int n = 0; n < COUNT; n++)
2022 items[n] >> out[n];
2023 }

◆ set()

void klang::Bank< TYPE, COUNT >::set ( Args... args)
inlineinherited

Definition at line 2010 of file klang.h.

2010 {
2011 for (int n = 0; n < COUNT; n++)
2012 items[n].set(args...);
2013 }

Member Data Documentation

◆ items

TYPE klang::Bank< TYPE, COUNT >::items[COUNT]
inherited

Definition at line 2004 of file klang.h.