2017-12-01 23:01:44 +01:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2017 The WebRTC project authors. All Rights Reserved.
|
|
|
|
|
*
|
|
|
|
|
* Use of this source code is governed by a BSD-style license
|
|
|
|
|
* that can be found in the LICENSE file in the root of the source
|
|
|
|
|
* tree. An additional intellectual property rights grant can be found
|
|
|
|
|
* in the file PATENTS. All contributing project authors may
|
|
|
|
|
* be found in the AUTHORS file in the root of the source tree.
|
|
|
|
|
*/
|
|
|
|
|
|
2019-09-05 11:30:49 +02:00
|
|
|
#include "modules/audio_processing/aec3/block_buffer.h"
|
2017-12-01 23:01:44 +01:00
|
|
|
|
2018-10-23 12:03:01 +02:00
|
|
|
#include <algorithm>
|
2017-12-01 23:01:44 +01:00
|
|
|
|
|
|
|
|
namespace webrtc {
|
|
|
|
|
|
2022-05-23 10:39:53 +02:00
|
|
|
BlockBuffer::BlockBuffer(size_t size, size_t num_bands, size_t num_channels)
|
2017-12-11 21:34:19 +01:00
|
|
|
: size(static_cast<int>(size)),
|
2022-05-23 10:39:53 +02:00
|
|
|
buffer(size, Block(num_bands, num_channels)) {}
|
2017-12-01 23:01:44 +01:00
|
|
|
|
2019-09-05 11:30:49 +02:00
|
|
|
BlockBuffer::~BlockBuffer() = default;
|
2017-12-01 23:01:44 +01:00
|
|
|
|
|
|
|
|
} // namespace webrtc
|