| 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 16 matching lines...) Expand all Loading... |
| 27 */ | 27 */ |
| 28 | 28 |
| 29 #ifndef HRTFKernel_h | 29 #ifndef HRTFKernel_h |
| 30 #define HRTFKernel_h | 30 #define HRTFKernel_h |
| 31 | 31 |
| 32 #include "platform/audio/FFTFrame.h" | 32 #include "platform/audio/FFTFrame.h" |
| 33 #include "wtf/Allocator.h" | 33 #include "wtf/Allocator.h" |
| 34 #include "wtf/Noncopyable.h" | 34 #include "wtf/Noncopyable.h" |
| 35 #include "wtf/OwnPtr.h" | 35 #include "wtf/OwnPtr.h" |
| 36 #include "wtf/PassOwnPtr.h" | 36 #include "wtf/PassOwnPtr.h" |
| 37 #include "wtf/PassRefPtr.h" | |
| 38 #include "wtf/RefCounted.h" | |
| 39 #include "wtf/RefPtr.h" | |
| 40 #include "wtf/Vector.h" | 37 #include "wtf/Vector.h" |
| 41 | 38 |
| 42 namespace blink { | 39 namespace blink { |
| 43 | 40 |
| 44 class AudioChannel; | 41 class AudioChannel; |
| 45 | 42 |
| 46 // HRTF stands for Head-Related Transfer Function. | 43 // HRTF stands for Head-Related Transfer Function. |
| 47 // HRTFKernel is a frequency-domain representation of an impulse-response used a
s part of the spatialized panning system. | 44 // HRTFKernel is a frequency-domain representation of an impulse-response used a
s part of the spatialized panning system. |
| 48 // For a given azimuth / elevation angle there will be one HRTFKernel for the le
ft ear transfer function, and one for the right ear. | 45 // For a given azimuth / elevation angle there will be one HRTFKernel for the le
ft ear transfer function, and one for the right ear. |
| 49 // The leading delay (average group delay) for each impulse response is extracte
d: | 46 // The leading delay (average group delay) for each impulse response is extracte
d: |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 OwnPtr<FFTFrame> m_fftFrame; | 90 OwnPtr<FFTFrame> m_fftFrame; |
| 94 float m_frameDelay; | 91 float m_frameDelay; |
| 95 float m_sampleRate; | 92 float m_sampleRate; |
| 96 }; | 93 }; |
| 97 | 94 |
| 98 typedef Vector<OwnPtr<HRTFKernel>> HRTFKernelList; | 95 typedef Vector<OwnPtr<HRTFKernel>> HRTFKernelList; |
| 99 | 96 |
| 100 } // namespace blink | 97 } // namespace blink |
| 101 | 98 |
| 102 #endif // HRTFKernel_h | 99 #endif // HRTFKernel_h |
| OLD | NEW |