#include "media/base/audio_bus_pool.h"
#include <memory>
#include "base/check_op.h"
#include "base/functional/bind.h"
#include "base/synchronization/lock.h"
#include "media/base/audio_bus.h"
#include "media/base/audio_parameters.h"
namespace media {
AudioBusPoolImpl::AudioBusPoolImpl(const AudioParameters& params,
size_t preallocated,
size_t max_capacity)
: … { … }
AudioBusPoolImpl::~AudioBusPoolImpl() = default;
std::unique_ptr<AudioBus> AudioBusPoolImpl::GetAudioBus() { … }
void AudioBusPoolImpl::InsertAudioBus(std::unique_ptr<AudioBus> audio_bus) { … }
AudioBusPoolImpl::AudioBusPoolImpl(const AudioParameters& params,
size_t preallocated,
size_t max_capacity,
CreateAudioBusCallback create_audio_bus)
: … { … }
}