summaryrefslogtreecommitdiff
path: root/libs/panners/vbap/vbap.h
diff options
context:
space:
mode:
Diffstat (limited to 'libs/panners/vbap/vbap.h')
-rw-r--r--libs/panners/vbap/vbap.h56
1 files changed, 28 insertions, 28 deletions
diff --git a/libs/panners/vbap/vbap.h b/libs/panners/vbap/vbap.h
index 2a3c0ea8e3..584cd29f4b 100644
--- a/libs/panners/vbap/vbap.h
+++ b/libs/panners/vbap/vbap.h
@@ -20,8 +20,8 @@
#ifndef __libardour_vbap_h__
#define __libardour_vbap_h__
-#include <string>
#include <map>
+#include <string>
#include "pbd/cartesian.h"
@@ -30,8 +30,8 @@
#include "vbap_speakers.h"
-namespace ARDOUR {
-
+namespace ARDOUR
+{
class Speakers;
class Pannable;
@@ -41,13 +41,13 @@ public:
VBAPanner (boost::shared_ptr<Pannable>, boost::shared_ptr<Speakers>);
~VBAPanner ();
- void configure_io (ChanCount in, ChanCount /* ignored - we use Speakers */);
- ChanCount in() const;
- ChanCount out() const;
+ void configure_io (ChanCount in, ChanCount /* ignored - we use Speakers */);
+ ChanCount in () const;
+ ChanCount out () const;
- void set_position (double);
- void set_width (double);
- void set_elevation (double);
+ void set_position (double);
+ void set_width (double);
+ void set_elevation (double);
static Panner* factory (boost::shared_ptr<Pannable>, boost::shared_ptr<Speakers>);
@@ -55,41 +55,41 @@ public:
void set_azimuth_elevation (double azimuth, double elevation);
- std::string value_as_string (boost::shared_ptr<const AutomationControl>) const;
+ std::string value_as_string (boost::shared_ptr<const AutomationControl>) const;
XMLNode& get_state ();
- PBD::AngularVector signal_position (uint32_t n) const;
- boost::shared_ptr<Speakers> get_speakers() const;
+ PBD::AngularVector signal_position (uint32_t n) const;
+ boost::shared_ptr<Speakers> get_speakers () const;
void reset ();
private:
- struct Signal {
- PBD::AngularVector direction;
- std::vector<double> gains; /* most recently used gain for all speakers */
+ struct Signal {
+ PBD::AngularVector direction;
+ std::vector<double> gains; /* most recently used gain for all speakers */
- int outputs[3]; /* most recent set of outputs used (2 or 3, depending on dimension) */
- int desired_outputs[3]; /* outputs to use the next time we distribute */
- double desired_gains[3]; /* target gains for desired_outputs */
+ int outputs[3]; /* most recent set of outputs used (2 or 3, depending on dimension) */
+ int desired_outputs[3]; /* outputs to use the next time we distribute */
+ double desired_gains[3]; /* target gains for desired_outputs */
- Signal (VBAPanner&, uint32_t which, uint32_t n_speakers);
- void resize_gains (uint32_t n_speakers);
- };
+ Signal (VBAPanner&, uint32_t which, uint32_t n_speakers);
+ void resize_gains (uint32_t n_speakers);
+ };
- std::vector<Signal*> _signals;
- boost::shared_ptr<VBAPSpeakers> _speakers;
+ std::vector<Signal*> _signals;
+ boost::shared_ptr<VBAPSpeakers> _speakers;
void compute_gains (double g[3], int ls[3], int azi, int ele);
- void update ();
- void clear_signals ();
+ void update ();
+ void clear_signals ();
void distribute_one (AudioBuffer& src, BufferSet& obufs, gain_t gain_coeff, pframes_t nframes, uint32_t which);
void distribute_one_automated (AudioBuffer& src, BufferSet& obufs,
- samplepos_t start, samplepos_t end, pframes_t nframes,
- pan_t** buffers, uint32_t which);
+ samplepos_t start, samplepos_t end, pframes_t nframes,
+ pan_t** buffers, uint32_t which);
};
-} /* namespace */
+} // namespace ARDOUR
#endif /* __libardour_vbap_h__ */