diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-09-18 22:33:20 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-09-18 22:33:20 +0100 |
| commit | 0dfd150ac546eb42067cb51b6d4386fadc24afab (patch) | |
| tree | 94a8f04112a272996254940c9eebe8c7c260cd65 /src/lib/upmixer_b.h | |
| parent | 1dab4d3d084eda74612a3ebf0688ebc6fda7e78b (diff) | |
Add UpmixerB.
Diffstat (limited to 'src/lib/upmixer_b.h')
| -rw-r--r-- | src/lib/upmixer_b.h | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/src/lib/upmixer_b.h b/src/lib/upmixer_b.h new file mode 100644 index 000000000..f128e1d0e --- /dev/null +++ b/src/lib/upmixer_b.h @@ -0,0 +1,45 @@ +/* + Copyright (C) 2015 Carl Hetherington <cth@carlh.net> + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + +*/ + +/** @file src/lib/upmixer_b.h + * @brief UpmixerB class. + */ + +#include "audio_processor.h" +#include "audio_filter.h" +#include "audio_delay.h" + +class UpmixerB : public AudioProcessor +{ +public: + UpmixerB (int sampling_rate); + + std::string name () const; + std::string id () const; + int out_channels () const; + boost::shared_ptr<AudioProcessor> clone (int) const; + boost::shared_ptr<AudioBuffers> run (boost::shared_ptr<const AudioBuffers>, int channels); + void flush (); + void make_audio_mapping_default (AudioMapping& mapping) const; + std::vector<std::string> input_names () const; + +private: + BandPassAudioFilter _lfe; + AudioDelay _delay; +}; |
