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 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 | 69 |
70 // Interpolates by this factor to get the total number of elevations from ev
ery elevation loaded from resource. | 70 // Interpolates by this factor to get the total number of elevations from ev
ery elevation loaded from resource. |
71 static const unsigned InterpolationFactor; | 71 static const unsigned InterpolationFactor; |
72 | 72 |
73 // Total number of elevations after interpolation. | 73 // Total number of elevations after interpolation. |
74 static const unsigned NumberOfTotalElevations; | 74 static const unsigned NumberOfTotalElevations; |
75 | 75 |
76 // Returns the index for the correct HRTFElevation given the elevation angle
. | 76 // Returns the index for the correct HRTFElevation given the elevation angle
. |
77 static unsigned indexFromElevationAngle(double); | 77 static unsigned indexFromElevationAngle(double); |
78 | 78 |
79 Vector<OwnPtr<HRTFElevation> > m_elevations; | 79 Vector<OwnPtr<HRTFElevation>> m_elevations; |
80 float m_sampleRate; | 80 float m_sampleRate; |
81 }; | 81 }; |
82 | 82 |
83 } // namespace blink | 83 } // namespace blink |
84 | 84 |
85 #endif // HRTFDatabase_h | 85 #endif // HRTFDatabase_h |
OLD | NEW |