| 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/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" | 37 #include "wtf/PassRefPtr.h" |
| 38 #include "wtf/RefCounted.h" | 38 #include "wtf/RefCounted.h" |
| 39 #include "wtf/RefPtr.h" | 39 #include "wtf/RefPtr.h" |
| 40 #include "wtf/Vector.h" | 40 #include "wtf/Vector.h" |
| 41 | 41 |
| 42 #if ENABLE(WEB_AUDIO) | |
| 43 | |
| 44 namespace blink { | 42 namespace blink { |
| 45 | 43 |
| 46 class AudioChannel; | 44 class AudioChannel; |
| 47 | 45 |
| 48 // HRTF stands for Head-Related Transfer Function. | 46 // HRTF stands for Head-Related Transfer Function. |
| 49 // HRTFKernel is a frequency-domain representation of an impulse-response used a
s part of the spatialized panning system. | 47 // HRTFKernel is a frequency-domain representation of an impulse-response used a
s part of the spatialized panning system. |
| 50 // For a given azimuth / elevation angle there will be one HRTFKernel for the le
ft ear transfer function, and one for the right ear. | 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. |
| 51 // The leading delay (average group delay) for each impulse response is extracte
d: | 49 // The leading delay (average group delay) for each impulse response is extracte
d: |
| 52 // m_fftFrame is the frequency-domain representation of the impulse respons
e with the delay removed | 50 // m_fftFrame is the frequency-domain representation of the impulse respons
e with the delay removed |
| 53 // m_frameDelay is the leading delay of the original impulse response. | 51 // m_frameDelay is the leading delay of the original impulse response. |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 | 92 |
| 95 OwnPtr<FFTFrame> m_fftFrame; | 93 OwnPtr<FFTFrame> m_fftFrame; |
| 96 float m_frameDelay; | 94 float m_frameDelay; |
| 97 float m_sampleRate; | 95 float m_sampleRate; |
| 98 }; | 96 }; |
| 99 | 97 |
| 100 typedef Vector<OwnPtr<HRTFKernel>> HRTFKernelList; | 98 typedef Vector<OwnPtr<HRTFKernel>> HRTFKernelList; |
| 101 | 99 |
| 102 } // namespace blink | 100 } // namespace blink |
| 103 | 101 |
| 104 #endif // ENABLE(WEB_AUDIO) | |
| 105 | |
| 106 #endif // HRTFKernel_h | 102 #endif // HRTFKernel_h |
| OLD | NEW |