diff options
Diffstat (limited to 'chromium/third_party/blink/renderer/platform/audio/down_sampler.h')
-rw-r--r-- | chromium/third_party/blink/renderer/platform/audio/down_sampler.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/chromium/third_party/blink/renderer/platform/audio/down_sampler.h b/chromium/third_party/blink/renderer/platform/audio/down_sampler.h index 494e8a2419c..ffcc667ac85 100644 --- a/chromium/third_party/blink/renderer/platform/audio/down_sampler.h +++ b/chromium/third_party/blink/renderer/platform/audio/down_sampler.h @@ -31,7 +31,6 @@ #ifndef THIRD_PARTY_BLINK_RENDERER_PLATFORM_AUDIO_DOWN_SAMPLER_H_ #define THIRD_PARTY_BLINK_RENDERER_PLATFORM_AUDIO_DOWN_SAMPLER_H_ -#include "base/macros.h" #include "third_party/blink/renderer/platform/audio/audio_array.h" #include "third_party/blink/renderer/platform/audio/simple_fft_convolver.h" #include "third_party/blink/renderer/platform/wtf/allocator/allocator.h" @@ -44,12 +43,14 @@ class PLATFORM_EXPORT DownSampler { USING_FAST_MALLOC(DownSampler); public: - explicit DownSampler(size_t input_block_size); + explicit DownSampler(unsigned input_block_size); + DownSampler(const DownSampler&) = delete; + DownSampler& operator=(const DownSampler&) = delete; // The destination buffer |destP| is of size sourceFramesToProcess / 2. void Process(const float* source_p, float* dest_p, - size_t source_frames_to_process); + uint32_t source_frames_to_process); void Reset(); @@ -59,7 +60,7 @@ class PLATFORM_EXPORT DownSampler { private: enum { kDefaultKernelSize = 256 }; - size_t input_block_size_; + unsigned input_block_size_; // Half-band filter. SimpleFFTConvolver is always faster than DirectConvolver. SimpleFFTConvolver convolver_; @@ -69,8 +70,6 @@ class PLATFORM_EXPORT DownSampler { // 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. AudioFloatArray input_buffer_; - - DISALLOW_COPY_AND_ASSIGN(DownSampler); }; } // namespace blink |