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

Side by Side Diff: third_party/WebKit/Source/platform/audio/DownSampler.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) 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 18 matching lines...) Expand all
29 */ 29 */
30 30
31 #ifndef DownSampler_h 31 #ifndef DownSampler_h
32 #define DownSampler_h 32 #define DownSampler_h
33 33
34 #include "platform/audio/AudioArray.h" 34 #include "platform/audio/AudioArray.h"
35 #include "platform/audio/DirectConvolver.h" 35 #include "platform/audio/DirectConvolver.h"
36 #include "wtf/Allocator.h" 36 #include "wtf/Allocator.h"
37 #include "wtf/Noncopyable.h" 37 #include "wtf/Noncopyable.h"
38 38
39 #if ENABLE(WEB_AUDIO)
40
41 namespace blink { 39 namespace blink {
42 40
43 // DownSampler down-samples the source stream by a factor of 2x. 41 // DownSampler down-samples the source stream by a factor of 2x.
44 42
45 class PLATFORM_EXPORT DownSampler { 43 class PLATFORM_EXPORT DownSampler {
46 USING_FAST_MALLOC(DownSampler); 44 USING_FAST_MALLOC(DownSampler);
47 WTF_MAKE_NONCOPYABLE(DownSampler); 45 WTF_MAKE_NONCOPYABLE(DownSampler);
48 public: 46 public:
49 DownSampler(size_t inputBlockSize); 47 DownSampler(size_t inputBlockSize);
50 48
(...skipping 19 matching lines...) Expand all
70 DirectConvolver m_convolver; 68 DirectConvolver m_convolver;
71 69
72 AudioFloatArray m_tempBuffer; 70 AudioFloatArray m_tempBuffer;
73 71
74 // Used as delay-line (FIR filter history) for the input samples to account for the 0.5 term right in the middle of the kernel. 72 // Used as delay-line (FIR filter history) for the input samples to account for the 0.5 term right in the middle of the kernel.
75 AudioFloatArray m_inputBuffer; 73 AudioFloatArray m_inputBuffer;
76 }; 74 };
77 75
78 } // namespace blink 76 } // namespace blink
79 77
80 #endif // ENABLE(WEB_AUDIO)
81
82 #endif // DownSampler_h 78 #endif // DownSampler_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/audio/Distance.cpp ('k') | third_party/WebKit/Source/platform/audio/DownSampler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698