OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 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 are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 // Computes ideal band-limited half-band filter coefficients. | 65 // Computes ideal band-limited half-band filter coefficients. |
66 // In other words, filter out all frequencies higher than 0.25 * Nyquist. | 66 // In other words, filter out all frequencies higher than 0.25 * Nyquist. |
67 void initializeKernel(); | 67 void initializeKernel(); |
68 AudioFloatArray m_reducedKernel; | 68 AudioFloatArray m_reducedKernel; |
69 | 69 |
70 // Half-band filter. | 70 // Half-band filter. |
71 DirectConvolver m_convolver; | 71 DirectConvolver m_convolver; |
72 | 72 |
73 AudioFloatArray m_tempBuffer; | 73 AudioFloatArray m_tempBuffer; |
74 | 74 |
75 // Used as delay-line (FIR filter history) for the input samples to account fo
r the 0.5 term right in the middle of the kernel. | 75 // Used as delay-line (FIR filter history) for the input samples to account |
| 76 // for the 0.5 term right in the middle of the kernel. |
76 AudioFloatArray m_inputBuffer; | 77 AudioFloatArray m_inputBuffer; |
77 }; | 78 }; |
78 | 79 |
79 } // namespace blink | 80 } // namespace blink |
80 | 81 |
81 #endif // DownSampler_h | 82 #endif // DownSampler_h |
OLD | NEW |