Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(60)

Side by Side Diff: third_party/WebKit/Source/platform/audio/FFTConvolver.h

Issue 1557363002: Remove the WEB_AUDIO compile time flag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
27 */ 27 */
28 28
29 #ifndef FFTConvolver_h 29 #ifndef FFTConvolver_h
30 #define FFTConvolver_h 30 #define FFTConvolver_h
31 31
32 #include "platform/audio/AudioArray.h" 32 #include "platform/audio/AudioArray.h"
33 #include "platform/audio/FFTFrame.h" 33 #include "platform/audio/FFTFrame.h"
34 #include "wtf/Allocator.h" 34 #include "wtf/Allocator.h"
35 #include "wtf/Noncopyable.h" 35 #include "wtf/Noncopyable.h"
36 36
37 #if ENABLE(WEB_AUDIO)
38
39 namespace blink { 37 namespace blink {
40 38
41 class PLATFORM_EXPORT FFTConvolver { 39 class PLATFORM_EXPORT FFTConvolver {
42 USING_FAST_MALLOC(FFTConvolver); 40 USING_FAST_MALLOC(FFTConvolver);
43 WTF_MAKE_NONCOPYABLE(FFTConvolver); 41 WTF_MAKE_NONCOPYABLE(FFTConvolver);
44 public: 42 public:
45 // fftSize must be a power of two 43 // fftSize must be a power of two
46 FFTConvolver(size_t fftSize); 44 FFTConvolver(size_t fftSize);
47 45
48 // For now, with multiple calls to Process(), framesToProcess MUST add up EX ACTLY to fftSize / 2 46 // For now, with multiple calls to Process(), framesToProcess MUST add up EX ACTLY to fftSize / 2
(...skipping 18 matching lines...) Expand all
67 65
68 // Stores output which we read a little at a time 66 // Stores output which we read a little at a time
69 AudioFloatArray m_outputBuffer; 67 AudioFloatArray m_outputBuffer;
70 68
71 // Saves the 2nd half of the FFT buffer, so we can do an overlap-add with th e 1st half of the next one 69 // Saves the 2nd half of the FFT buffer, so we can do an overlap-add with th e 1st half of the next one
72 AudioFloatArray m_lastOverlapBuffer; 70 AudioFloatArray m_lastOverlapBuffer;
73 }; 71 };
74 72
75 } // namespace blink 73 } // namespace blink
76 74
77 #endif // ENABLE(WEB_AUDIO)
78
79 #endif // FFTConvolver_h 75 #endif // FFTConvolver_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698