#include "media/audio/reconfigurable_audio_bus_pool.h"
#include <memory>
#include "base/check_op.h"
#include "base/functional/bind.h"
#include "base/functional/callback.h"
#include "base/synchronization/lock.h"
#include "base/task/bind_post_task.h"
#include "media/base/audio_bus.h"
#include "media/base/audio_bus_pool.h"
#include "media/base/audio_parameters.h"
#include "media/base/reentrancy_checker.h"
namespace media {
ReconfigurableAudioBusPoolImpl::ReconfigurableAudioBusPoolImpl(
base::TimeDelta preallocated_audio_bus_pool_duration)
: … { … }
ReconfigurableAudioBusPoolImpl::~ReconfigurableAudioBusPoolImpl() = default;
std::unique_ptr<AudioBus> ReconfigurableAudioBusPoolImpl::GetAudioBus() { … }
void ReconfigurableAudioBusPoolImpl::InsertAudioBus(
std::unique_ptr<AudioBus> audio_bus) { … }
void ReconfigurableAudioBusPoolImpl::Reconfigure(
const AudioParameters& audio_parameters) { … }
}