Home | History | Annotate | Download | only in audio

Lines Matching refs:azimuth

52 void EqualPowerPanner::pan(double azimuth, double /*elevation*/, const AudioBus* inputBus, AudioBus* outputBus, size_t framesToProcess)
74 // Clamp azimuth to allowed range of -180 -> +180.
75 azimuth = max(-180.0, azimuth);
76 azimuth = min(180.0, azimuth);
78 // Alias the azimuth ranges behind us to in front of us:
80 if (azimuth < -90)
81 azimuth = -180 - azimuth;
82 else if (azimuth > 90)
83 azimuth = 180 - azimuth;
90 // Pan smoothly from left to right with azimuth going from -90 -> +90 degrees.
91 desiredPanPosition = (azimuth + 90) / 180;
93 if (azimuth <= 0) { // from -90 -> 0
95 // by transforming the "azimuth" value from -90 -> 0 degrees into the range -90 -> +90.
96 desiredPanPosition = (azimuth + 90) / 90;
99 // by transforming the "azimuth" value from 0 -> +90 degrees into the range -90 -> +90.
100 desiredPanPosition = azimuth / 90;
132 if (azimuth <= 0) { // from -90 -> 0