X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fupmixer_a.h;h=a644e92fedd82ed7b7a5d266ab20078768b988b4;hb=bb9d1f9e0f1aa818d1ac2145f05563e4c95d41b1;hp=32e3f5fb625c4b7875c5407dc509acfe180e09e1;hpb=e80e6a8567dd107f5ea3b708975cb5fd92112a57;p=dcpomatic.git diff --git a/src/lib/upmixer_a.h b/src/lib/upmixer_a.h index 32e3f5fb6..a644e92fe 100644 --- a/src/lib/upmixer_a.h +++ b/src/lib/upmixer_a.h @@ -17,27 +17,35 @@ */ +/** @file src/lib/upmixer_a.h + * @brief UpmixerA class. + */ + #include "audio_processor.h" #include "audio_filter.h" +/** @class UpmixerA + * @brief Stereo to 5.1 upmixer algorithm by Gérald Maruccia. + */ class UpmixerA : public AudioProcessor { public: UpmixerA (int sampling_rate); - + std::string name () const; std::string id () const; - ChannelCount in_channels () const; - int out_channels (int) const; + int out_channels () const; boost::shared_ptr clone (int) const; - boost::shared_ptr run (boost::shared_ptr); + boost::shared_ptr run (boost::shared_ptr, int channels); void flush (); + void make_audio_mapping_default (AudioMapping& mapping) const; + std::vector input_names () const; private: BandPassAudioFilter _left; BandPassAudioFilter _right; BandPassAudioFilter _centre; - BandPassAudioFilter _lfe; + LowPassAudioFilter _lfe; BandPassAudioFilter _ls; BandPassAudioFilter _rs; };