| 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 | 54 |
| 55 void Reset() override; | 55 void Reset() override; |
| 56 | 56 |
| 57 size_t FftSize() const { return FftSizeForSampleRate(sample_rate_); } | 57 size_t FftSize() const { return FftSizeForSampleRate(sample_rate_); } |
| 58 static size_t FftSizeForSampleRate(float sample_rate); | 58 static size_t FftSizeForSampleRate(float sample_rate); |
| 59 | 59 |
| 60 float SampleRate() const { return sample_rate_; } | 60 float SampleRate() const { return sample_rate_; } |
| 61 | 61 |
| 62 double TailTime() const override; | 62 double TailTime() const override; |
| 63 double LatencyTime() const override; | 63 double LatencyTime() const override; |
| 64 bool RequiresTailProcessing() const override; |
| 64 | 65 |
| 65 private: | 66 private: |
| 66 // Given an azimuth angle in the range -180 -> +180, returns the corresponding | 67 // Given an azimuth angle in the range -180 -> +180, returns the corresponding |
| 67 // azimuth index for the database, and azimuthBlend which is an interpolation | 68 // azimuth index for the database, and azimuthBlend which is an interpolation |
| 68 // value from 0 -> 1. | 69 // value from 0 -> 1. |
| 69 int CalculateDesiredAzimuthIndexAndBlend(double azimuth, | 70 int CalculateDesiredAzimuthIndexAndBlend(double azimuth, |
| 70 double& azimuth_blend); | 71 double& azimuth_blend); |
| 71 | 72 |
| 72 RefPtr<HRTFDatabaseLoader> database_loader_; | 73 RefPtr<HRTFDatabaseLoader> database_loader_; |
| 73 | 74 |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 | 115 |
| 115 AudioFloatArray temp_l1_; | 116 AudioFloatArray temp_l1_; |
| 116 AudioFloatArray temp_r1_; | 117 AudioFloatArray temp_r1_; |
| 117 AudioFloatArray temp_l2_; | 118 AudioFloatArray temp_l2_; |
| 118 AudioFloatArray temp_r2_; | 119 AudioFloatArray temp_r2_; |
| 119 }; | 120 }; |
| 120 | 121 |
| 121 } // namespace blink | 122 } // namespace blink |
| 122 | 123 |
| 123 #endif // HRTFPanner_h | 124 #endif // HRTFPanner_h |
| OLD | NEW |