13
0

Pan: remove unused APIs

This commit is contained in:
Robin Gareus 2020-03-21 03:57:00 +01:00
parent 628d704d4e
commit 991f92c2c6
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -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 ();