summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/platform/audio/reverb_accumulation_buffer.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/blink/renderer/platform/audio/reverb_accumulation_buffer.h')
-rw-r--r--chromium/third_party/blink/renderer/platform/audio/reverb_accumulation_buffer.h27
1 files changed, 13 insertions, 14 deletions
diff --git a/chromium/third_party/blink/renderer/platform/audio/reverb_accumulation_buffer.h b/chromium/third_party/blink/renderer/platform/audio/reverb_accumulation_buffer.h
index ee12f0c9d48..1e63969297a 100644
--- a/chromium/third_party/blink/renderer/platform/audio/reverb_accumulation_buffer.h
+++ b/chromium/third_party/blink/renderer/platform/audio/reverb_accumulation_buffer.h
@@ -29,7 +29,6 @@
#ifndef THIRD_PARTY_BLINK_RENDERER_PLATFORM_AUDIO_REVERB_ACCUMULATION_BUFFER_H_
#define THIRD_PARTY_BLINK_RENDERER_PLATFORM_AUDIO_REVERB_ACCUMULATION_BUFFER_H_
-#include "base/macros.h"
#include "third_party/blink/renderer/platform/audio/audio_array.h"
#include "third_party/blink/renderer/platform/platform_export.h"
#include "third_party/blink/renderer/platform/wtf/allocator/allocator.h"
@@ -45,10 +44,12 @@ class PLATFORM_EXPORT ReverbAccumulationBuffer {
DISALLOW_NEW();
public:
- ReverbAccumulationBuffer(size_t length);
+ ReverbAccumulationBuffer(uint32_t length);
+ ReverbAccumulationBuffer(const ReverbAccumulationBuffer&) = delete;
+ ReverbAccumulationBuffer& operator=(const ReverbAccumulationBuffer&) = delete;
// This will read from, then clear-out numberOfFrames
- void ReadAndClear(float* destination, size_t number_of_frames);
+ void ReadAndClear(float* destination, uint32_t number_of_frames);
// Each ReverbConvolverStage will accumulate its output at the appropriate
// delay from the read position. We need to pass in and update readIndex
@@ -56,24 +57,22 @@ class PLATFORM_EXPORT ReverbAccumulationBuffer {
// than the realtime thread calling ReadAndClear() and maintaining
// m_readIndex
// Returns the writeIndex where the accumulation took place
- int Accumulate(float* source,
- size_t number_of_frames,
- int* read_index,
- size_t delay_frames);
+ uint32_t Accumulate(float* source,
+ uint32_t number_of_frames,
+ uint32_t* read_index,
+ size_t delay_frames);
- size_t ReadIndex() const { return read_index_; }
- void UpdateReadIndex(int* read_index, size_t number_of_frames) const;
+ uint32_t ReadIndex() const { return read_index_; }
+ void UpdateReadIndex(uint32_t* read_index, uint32_t number_of_frames) const;
- size_t ReadTimeFrame() const { return read_time_frame_; }
+ uint32_t ReadTimeFrame() const { return read_time_frame_; }
void Reset();
private:
AudioFloatArray buffer_;
- size_t read_index_;
- size_t read_time_frame_; // for debugging (frame on continuous timeline)
-
- DISALLOW_COPY_AND_ASSIGN(ReverbAccumulationBuffer);
+ uint32_t read_index_;
+ uint32_t read_time_frame_; // for debugging (frame on continuous timeline)
};
} // namespace blink