Commit bf6c8d4e authored by Raymond Toy's avatar Raymond Toy Committed by Commit Bot

Rename file cone.* to cone_effect.*

The class is named ConeEffect but the file was cone.h and cone.cc.
Rename the files to cone_effect.h and cone_effect.cc

Fix a blink style issue in cone_effects.cc too.

Bug: 832708
Change-Id: I5acd880ba61cd1597c10e488aa318e939ac1c321
Reviewed-on: https://chromium-review.googlesource.com/1011455Reviewed-by: default avatarHongchan Choi <hongchan@chromium.org>
Commit-Queue: Raymond Toy <rtoy@chromium.org>
Cr-Commit-Position: refs/heads/master@{#551015}
parent 69bb77c1
......@@ -31,7 +31,7 @@
#include "third_party/blink/renderer/modules/webaudio/audio_node.h"
#include "third_party/blink/renderer/modules/webaudio/audio_param.h"
#include "third_party/blink/renderer/platform/audio/audio_bus.h"
#include "third_party/blink/renderer/platform/audio/cone.h"
#include "third_party/blink/renderer/platform/audio/cone_effect.h"
#include "third_party/blink/renderer/platform/audio/distance_effect.h"
#include "third_party/blink/renderer/platform/audio/panner.h"
#include "third_party/blink/renderer/platform/geometry/float_point_3d.h"
......
......@@ -355,8 +355,8 @@ jumbo_component("platform") {
"audio/audio_utilities.h",
"audio/biquad.cc",
"audio/biquad.h",
"audio/cone.cc",
"audio/cone.h",
"audio/cone_effect.cc",
"audio/cone_effect.h",
"audio/cpu/arm/vector_math_neon.h",
"audio/cpu/mips/vector_math_msa.h",
"audio/cpu/x86/vector_math_avx.cc",
......
......@@ -26,7 +26,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "third_party/blink/renderer/platform/audio/cone.h"
#include "third_party/blink/renderer/platform/audio/cone_effect.h"
#include "third_party/blink/renderer/platform/wtf/math_extras.h"
namespace blink {
......@@ -53,13 +53,13 @@ double ConeEffect::Gain(FloatPoint3D source_position,
double abs_outer_angle = fabs(outer_angle_) / 2.0;
double gain = 1.0;
if (abs_angle <= abs_inner_angle)
if (abs_angle <= abs_inner_angle) {
// No attenuation
gain = 1.0;
else if (abs_angle >= abs_outer_angle)
} else if (abs_angle >= abs_outer_angle) {
// Max attenuation
gain = outer_gain_;
else {
} else {
// Between inner and outer cones
// inner -> outer, x goes from 0 -> 1
double x =
......
......@@ -26,8 +26,8 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef THIRD_PARTY_BLINK_RENDERER_PLATFORM_AUDIO_CONE_H_
#define THIRD_PARTY_BLINK_RENDERER_PLATFORM_AUDIO_CONE_H_
#ifndef THIRD_PARTY_BLINK_RENDERER_PLATFORM_AUDIO_CONE_EFFECT_H_
#define THIRD_PARTY_BLINK_RENDERER_PLATFORM_AUDIO_CONE_EFFECT_H_
#include "third_party/blink/renderer/platform/geometry/float_point_3d.h"
#include "third_party/blink/renderer/platform/platform_export.h"
......@@ -66,4 +66,4 @@ class PLATFORM_EXPORT ConeEffect {
} // namespace blink
#endif // THIRD_PARTY_BLINK_RENDERER_PLATFORM_AUDIO_CONE_H_
#endif // THIRD_PARTY_BLINK_RENDERER_PLATFORM_AUDIO_CONE_EFFECT_H_
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment