diff options
author | Robin Gareus <robin@gareus.org> | 2020-03-21 03:57:00 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2020-03-21 19:46:38 +0100 |
commit | 991f92c2c627ee79d8f5574b75e8cf28bb156936 (patch) | |
tree | d10e0f3f1f978c6e0a10a290db7bfbfa3906dc6f | |
parent | 628d704d4e4cff43dac497166412831eede6ef41 (diff) |
Pan: remove unused APIs
-rw-r--r-- | libs/ardour/ardour/panner.h | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/libs/ardour/ardour/panner.h b/libs/ardour/ardour/panner.h index 0e174a91e0..c2af287098 100644 --- a/libs/ardour/ardour/panner.h +++ b/libs/ardour/ardour/panner.h @@ -115,28 +115,6 @@ public: bool touching() const; - static double azimuth_to_lr_fract (double azi) { - /* 180.0 degrees=> left => 0.0 */ - /* 0.0 degrees => right => 1.0 */ - - /* humans can only distinguish 1 degree of arc between two positions, - so force azi back to an integral value before computing - */ - - return 1.0 - (rint(azi)/180.0); - } - - static double lr_fract_to_azimuth (double fract) { - /* fract = 0.0 => degrees = 180.0 => left */ - /* fract = 1.0 => degrees = 0.0 => right */ - - /* humans can only distinguish 1 degree of arc between two positions, - so force azi back to an integral value after computing - */ - - return rint (180.0 - (fract * 180.0)); - } - /** * Pan some input buffers to a number of output buffers. * @@ -163,15 +141,6 @@ public: boost::shared_ptr<Pannable> pannable() const { return _pannable; } - static bool equivalent (pan_t a, pan_t b) { - return fabsf (a - b) < 0.002; // about 1 degree of arc for a stereo panner - } - - static bool equivalent (const PBD::AngularVector& a, const PBD::AngularVector& b) { - /* XXX azimuth only, at present */ - return fabs (a.azi - b.azi) < 1.0; - } - virtual void freeze (); virtual void thaw (); |