| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010, Google Inc. All rights reserved. | 2 * Copyright (C) 2010, Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 #include "bindings/core/v8/ExceptionState.h" | 28 #include "bindings/core/v8/ExceptionState.h" |
| 29 #include "core/dom/ExceptionCode.h" | 29 #include "core/dom/ExceptionCode.h" |
| 30 #include "core/dom/ExecutionContext.h" | 30 #include "core/dom/ExecutionContext.h" |
| 31 #include "modules/webaudio/AudioBufferSourceNode.h" | 31 #include "modules/webaudio/AudioBufferSourceNode.h" |
| 32 #include "modules/webaudio/AudioNodeInput.h" | 32 #include "modules/webaudio/AudioNodeInput.h" |
| 33 #include "modules/webaudio/AudioNodeOutput.h" | 33 #include "modules/webaudio/AudioNodeOutput.h" |
| 34 #include "modules/webaudio/BaseAudioContext.h" | 34 #include "modules/webaudio/BaseAudioContext.h" |
| 35 #include "modules/webaudio/PannerOptions.h" | 35 #include "modules/webaudio/PannerOptions.h" |
| 36 #include "platform/Histogram.h" | 36 #include "platform/Histogram.h" |
| 37 #include "platform/audio/HRTFPanner.h" | 37 #include "platform/audio/HRTFPanner.h" |
| 38 #include "wtf/MathExtras.h" | 38 #include "platform/wtf/MathExtras.h" |
| 39 | 39 |
| 40 namespace blink { | 40 namespace blink { |
| 41 | 41 |
| 42 static void FixNANs(double& x) { | 42 static void FixNANs(double& x) { |
| 43 if (std::isnan(x) || std::isinf(x)) | 43 if (std::isnan(x) || std::isinf(x)) |
| 44 x = 0.0; | 44 x = 0.0; |
| 45 } | 45 } |
| 46 | 46 |
| 47 PannerHandler::PannerHandler(AudioNode& node, | 47 PannerHandler::PannerHandler(AudioNode& node, |
| 48 float sample_rate, | 48 float sample_rate, |
| (...skipping 763 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 812 visitor->Trace(position_z_); | 812 visitor->Trace(position_z_); |
| 813 | 813 |
| 814 visitor->Trace(orientation_x_); | 814 visitor->Trace(orientation_x_); |
| 815 visitor->Trace(orientation_y_); | 815 visitor->Trace(orientation_y_); |
| 816 visitor->Trace(orientation_z_); | 816 visitor->Trace(orientation_z_); |
| 817 | 817 |
| 818 AudioNode::Trace(visitor); | 818 AudioNode::Trace(visitor); |
| 819 } | 819 } |
| 820 | 820 |
| 821 } // namespace blink | 821 } // namespace blink |
| OLD | NEW |