diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2021-10-26 13:57:00 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2021-11-02 11:31:01 +0000 |
commit | 1943b3c2a1dcee36c233724fc4ee7613d71b9cf6 (patch) | |
tree | 8c1b5f12357025c197da5427ae02cfdc2f3570d6 /chromium/third_party/blink/renderer/platform/audio/audio_channel.h | |
parent | 21ba0c5d4bf8fba15dddd97cd693bad2358b77fd (diff) | |
download | qtwebengine-chromium-1943b3c2a1dcee36c233724fc4ee7613d71b9cf6.tar.gz |
BASELINE: Update Chromium to 94.0.4606.111
Change-Id: I924781584def20fc800bedf6ff41fdb96c438193
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'chromium/third_party/blink/renderer/platform/audio/audio_channel.h')
-rw-r--r-- | chromium/third_party/blink/renderer/platform/audio/audio_channel.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/chromium/third_party/blink/renderer/platform/audio/audio_channel.h b/chromium/third_party/blink/renderer/platform/audio/audio_channel.h index a7dbe7e2ef3..94f02729871 100644 --- a/chromium/third_party/blink/renderer/platform/audio/audio_channel.h +++ b/chromium/third_party/blink/renderer/platform/audio/audio_channel.h @@ -46,11 +46,11 @@ class PLATFORM_EXPORT AudioChannel { // AudioFloatArray. // Reference an external buffer. - AudioChannel(float* storage, size_t length) + AudioChannel(float* storage, uint32_t length) : length_(length), raw_pointer_(storage), silent_(false) {} // Manage storage for us. - explicit AudioChannel(size_t length) + explicit AudioChannel(uint32_t length) : length_(length), raw_pointer_(nullptr), silent_(true) { mem_buffer_ = std::make_unique<AudioFloatArray>(length); } @@ -60,7 +60,7 @@ class PLATFORM_EXPORT AudioChannel { // Redefine the memory for this channel. |storage| represents external memory // not managed by this object. - void Set(float* storage, size_t length) { + void Set(float* storage, uint32_t length) { mem_buffer_.reset(); // cleanup managed storage raw_pointer_ = storage; length_ = length; @@ -68,11 +68,11 @@ class PLATFORM_EXPORT AudioChannel { } // How many sample-frames do we contain? - size_t length() const { return length_; } + uint32_t length() const { return length_; } // ResizeSmaller() can only be called with a new length <= the current length. // The data stored in the bus will remain undisturbed. - void ResizeSmaller(size_t new_length); + void ResizeSmaller(uint32_t new_length); // Direct access to PCM sample data. Non-const accessor clears silent flag. float* MutableData() { @@ -122,7 +122,7 @@ class PLATFORM_EXPORT AudioChannel { float MaxAbsValue() const; private: - size_t length_; + uint32_t length_; float* raw_pointer_; std::unique_ptr<AudioFloatArray> mem_buffer_; |