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

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

Issue 400543004: Rename WebCore namespace to blink in Platform (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 months 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 | Annotate | Revision Log
« no previous file with comments | « Source/platform/audio/FFTFrameStub.cpp ('k') | Source/platform/audio/HRTFDatabase.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 18 matching lines...) Expand all
29 #ifndef HRTFDatabase_h 29 #ifndef HRTFDatabase_h
30 #define HRTFDatabase_h 30 #define HRTFDatabase_h
31 31
32 #include "platform/audio/HRTFElevation.h" 32 #include "platform/audio/HRTFElevation.h"
33 #include "wtf/Forward.h" 33 #include "wtf/Forward.h"
34 #include "wtf/Noncopyable.h" 34 #include "wtf/Noncopyable.h"
35 #include "wtf/OwnPtr.h" 35 #include "wtf/OwnPtr.h"
36 #include "wtf/PassRefPtr.h" 36 #include "wtf/PassRefPtr.h"
37 #include "wtf/Vector.h" 37 #include "wtf/Vector.h"
38 38
39 namespace WebCore { 39 namespace blink {
40 40
41 class HRTFKernel; 41 class HRTFKernel;
42 42
43 class PLATFORM_EXPORT HRTFDatabase { 43 class PLATFORM_EXPORT HRTFDatabase {
44 WTF_MAKE_NONCOPYABLE(HRTFDatabase); 44 WTF_MAKE_NONCOPYABLE(HRTFDatabase);
45 public: 45 public:
46 static PassOwnPtr<HRTFDatabase> create(float sampleRate); 46 static PassOwnPtr<HRTFDatabase> create(float sampleRate);
47 47
48 // getKernelsFromAzimuthElevation() returns a left and right ear kernel, and an interpolated left and right frame delay for the given azimuth and elevation. 48 // getKernelsFromAzimuthElevation() returns a left and right ear kernel, and an interpolated left and right frame delay for the given azimuth and elevation.
49 // azimuthBlend must be in the range 0 -> 1. 49 // azimuthBlend must be in the range 0 -> 1.
(...skipping 23 matching lines...) Expand all
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 WebCore 83 } // namespace blink
84 84
85 #endif // HRTFDatabase_h 85 #endif // HRTFDatabase_h
OLDNEW
« no previous file with comments | « Source/platform/audio/FFTFrameStub.cpp ('k') | Source/platform/audio/HRTFDatabase.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698