| Index: third_party/WebKit/Source/platform/audio/HRTFElevation.h
|
| diff --git a/third_party/WebKit/Source/platform/audio/HRTFElevation.h b/third_party/WebKit/Source/platform/audio/HRTFElevation.h
|
| index ac0515afc0d35437b83e6baf667b443d5288ff90..1d8a574252426ee911a46a4e8319c5d3cfe745ec 100644
|
| --- a/third_party/WebKit/Source/platform/audio/HRTFElevation.h
|
| +++ b/third_party/WebKit/Source/platform/audio/HRTFElevation.h
|
| @@ -40,28 +40,33 @@
|
|
|
| namespace blink {
|
|
|
| -// HRTFElevation contains all of the HRTFKernels (one left ear and one right ear per azimuth angle) for a particular elevation.
|
| +// HRTFElevation contains all of the HRTFKernels (one left ear and one right ear
|
| +// per azimuth angle) for a particular elevation.
|
|
|
| class PLATFORM_EXPORT HRTFElevation {
|
| USING_FAST_MALLOC(HRTFElevation);
|
| WTF_MAKE_NONCOPYABLE(HRTFElevation);
|
|
|
| public:
|
| - // Loads and returns an HRTFElevation with the given HRTF database subject name and elevation from browser (or WebKit.framework) resources.
|
| - // Normally, there will only be a single HRTF database set, but this API supports the possibility of multiple ones with different names.
|
| + // Loads and returns an HRTFElevation with the given HRTF database subject
|
| + // name and elevation from browser (or WebKit.framework) resources.
|
| + // Normally, there will only be a single HRTF database set, but this API
|
| + // supports the possibility of multiple ones with different names.
|
| // Interpolated azimuths will be generated based on InterpolationFactor.
|
| // Valid values for elevation are -45 -> +90 in 15 degree increments.
|
| static std::unique_ptr<HRTFElevation>
|
| createForSubject(const String& subjectName, int elevation, float sampleRate);
|
|
|
| - // Given two HRTFElevations, and an interpolation factor x: 0 -> 1, returns an interpolated HRTFElevation.
|
| + // Given two HRTFElevations, and an interpolation factor x: 0 -> 1, returns an
|
| + // interpolated HRTFElevation.
|
| static std::unique_ptr<HRTFElevation> createByInterpolatingSlices(
|
| HRTFElevation* hrtfElevation1,
|
| HRTFElevation* hrtfElevation2,
|
| float x,
|
| float sampleRate);
|
|
|
| - // Returns the list of left or right ear HRTFKernels for all the azimuths going from 0 to 360 degrees.
|
| + // Returns the list of left or right ear HRTFKernels for all the azimuths
|
| + // going from 0 to 360 degrees.
|
| HRTFKernelList* kernelListL() { return m_kernelListL.get(); }
|
| HRTFKernelList* kernelListR() { return m_kernelListR.get(); }
|
|
|
| @@ -70,7 +75,8 @@ class PLATFORM_EXPORT HRTFElevation {
|
| float sampleRate() const { return m_sampleRate; }
|
|
|
| // Returns the left and right kernels for the given azimuth index.
|
| - // The interpolated delays based on azimuthBlend: 0 -> 1 are returned in frameDelayL and frameDelayR.
|
| + // The interpolated delays based on azimuthBlend: 0 -> 1 are returned in
|
| + // frameDelayL and frameDelayR.
|
| void getKernelsFromAzimuth(double azimuthBlend,
|
| unsigned azimuthIndex,
|
| HRTFKernel*& kernelL,
|
| @@ -84,13 +90,15 @@ class PLATFORM_EXPORT HRTFElevation {
|
| // Number of azimuths loaded from resource.
|
| static const unsigned NumberOfRawAzimuths;
|
|
|
| - // Interpolates by this factor to get the total number of azimuths from every azimuth loaded from resource.
|
| + // Interpolates by this factor to get the total number of azimuths from every
|
| + // azimuth loaded from resource.
|
| static const unsigned InterpolationFactor;
|
|
|
| // Total number of azimuths after interpolation.
|
| static const unsigned NumberOfTotalAzimuths;
|
|
|
| - // Given a specific azimuth and elevation angle, returns the left and right HRTFKernel.
|
| + // Given a specific azimuth and elevation angle, returns the left and right
|
| + // HRTFKernel.
|
| // Valid values for azimuth are 0 -> 345 in 15 degree increments.
|
| // Valid values for elevation are -45 -> +90 in 15 degree increments.
|
| // Returns true on success.
|
|
|