Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(696)

Side by Side Diff: Source/platform/audio/HRTFDatabase.cpp

Issue 64643010: Remove duplicated headers from platform/ (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/platform/audio/AudioResampler.cpp ('k') | Source/platform/audio/HRTFDatabaseLoader.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 14 matching lines...) Expand all
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 */ 27 */
28 28
29 #include "config.h" 29 #include "config.h"
30 30
31 #if ENABLE(WEB_AUDIO) 31 #if ENABLE(WEB_AUDIO)
32 32
33 #include "platform/audio/HRTFDatabase.h" 33 #include "platform/audio/HRTFDatabase.h"
34 34
35 #include "platform/audio/HRTFElevation.h"
36 35
37 using namespace std; 36 using namespace std;
38 37
39 namespace WebCore { 38 namespace WebCore {
40 39
41 const int HRTFDatabase::MinElevation = -45; 40 const int HRTFDatabase::MinElevation = -45;
42 const int HRTFDatabase::MaxElevation = 90; 41 const int HRTFDatabase::MaxElevation = 90;
43 const unsigned HRTFDatabase::RawElevationAngleSpacing = 15; 42 const unsigned HRTFDatabase::RawElevationAngleSpacing = 15;
44 const unsigned HRTFDatabase::NumberOfRawElevations = 10; // -45 -> +90 (each 15 degrees) 43 const unsigned HRTFDatabase::NumberOfRawElevations = 10; // -45 -> +90 (each 15 degrees)
45 const unsigned HRTFDatabase::InterpolationFactor = 1; 44 const unsigned HRTFDatabase::InterpolationFactor = 1;
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 elevationAngle = max(static_cast<double>(MinElevation), elevationAngle); 114 elevationAngle = max(static_cast<double>(MinElevation), elevationAngle);
116 elevationAngle = min(static_cast<double>(MaxElevation), elevationAngle); 115 elevationAngle = min(static_cast<double>(MaxElevation), elevationAngle);
117 116
118 unsigned elevationIndex = static_cast<int>(InterpolationFactor * (elevationA ngle - MinElevation) / RawElevationAngleSpacing); 117 unsigned elevationIndex = static_cast<int>(InterpolationFactor * (elevationA ngle - MinElevation) / RawElevationAngleSpacing);
119 return elevationIndex; 118 return elevationIndex;
120 } 119 }
121 120
122 } // namespace WebCore 121 } // namespace WebCore
123 122
124 #endif // ENABLE(WEB_AUDIO) 123 #endif // ENABLE(WEB_AUDIO)
OLDNEW
« no previous file with comments | « Source/platform/audio/AudioResampler.cpp ('k') | Source/platform/audio/HRTFDatabaseLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698