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 12 matching lines...) Expand all Loading... |
23 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | 23 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
24 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 24 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
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 #ifndef HRTFElevation_h | 29 #ifndef HRTFElevation_h |
30 #define HRTFElevation_h | 30 #define HRTFElevation_h |
31 | 31 |
32 #include "core/platform/audio/HRTFKernel.h" | 32 #include "core/platform/audio/HRTFKernel.h" |
33 #include <wtf/Noncopyable.h> | 33 #include "wtf/Noncopyable.h" |
34 #include <wtf/OwnPtr.h> | 34 #include "wtf/OwnPtr.h" |
35 #include <wtf/PassOwnPtr.h> | 35 #include "wtf/PassOwnPtr.h" |
36 #include <wtf/PassRefPtr.h> | 36 #include "wtf/PassRefPtr.h" |
37 #include <wtf/RefCounted.h> | 37 #include "wtf/RefCounted.h" |
38 #include <wtf/RefPtr.h> | 38 #include "wtf/RefPtr.h" |
39 #include <wtf/text/CString.h> | 39 #include "wtf/text/CString.h" |
40 #include <wtf/text/WTFString.h> | 40 #include "wtf/text/WTFString.h" |
41 | 41 |
42 namespace WebCore { | 42 namespace WebCore { |
43 | 43 |
44 // HRTFElevation contains all of the HRTFKernels (one left ear and one right ear
per azimuth angle) for a particular elevation. | 44 // HRTFElevation contains all of the HRTFKernels (one left ear and one right ear
per azimuth angle) for a particular elevation. |
45 | 45 |
46 class HRTFElevation { | 46 class HRTFElevation { |
47 WTF_MAKE_NONCOPYABLE(HRTFElevation); | 47 WTF_MAKE_NONCOPYABLE(HRTFElevation); |
48 public: | 48 public: |
49 // Loads and returns an HRTFElevation with the given HRTF database subject n
ame and elevation from browser (or WebKit.framework) resources. | 49 // Loads and returns an HRTFElevation with the given HRTF database subject n
ame and elevation from browser (or WebKit.framework) resources. |
50 // Normally, there will only be a single HRTF database set, but this API sup
ports the possibility of multiple ones with different names. | 50 // Normally, there will only be a single HRTF database set, but this API sup
ports the possibility of multiple ones with different names. |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 | 103 |
104 OwnPtr<HRTFKernelList> m_kernelListL; | 104 OwnPtr<HRTFKernelList> m_kernelListL; |
105 OwnPtr<HRTFKernelList> m_kernelListR; | 105 OwnPtr<HRTFKernelList> m_kernelListR; |
106 double m_elevationAngle; | 106 double m_elevationAngle; |
107 float m_sampleRate; | 107 float m_sampleRate; |
108 }; | 108 }; |
109 | 109 |
110 } // namespace WebCore | 110 } // namespace WebCore |
111 | 111 |
112 #endif // HRTFElevation_h | 112 #endif // HRTFElevation_h |
OLD | NEW |