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 21 matching lines...) Expand all Loading... |
32 #include "platform/audio/HRTFKernel.h" | 32 #include "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 blink { |
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 PLATFORM_EXPORT HRTFElevation { | 46 class PLATFORM_EXPORT 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. |
51 // Interpolated azimuths will be generated based on InterpolationFactor. | 51 // Interpolated azimuths will be generated based on InterpolationFactor. |
52 // Valid values for elevation are -45 -> +90 in 15 degree increments. | 52 // Valid values for elevation are -45 -> +90 in 15 degree increments. |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 , m_sampleRate(sampleRate) | 100 , m_sampleRate(sampleRate) |
101 { | 101 { |
102 } | 102 } |
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 blink |
111 | 111 |
112 #endif // HRTFElevation_h | 112 #endif // HRTFElevation_h |
OLD | NEW |