chromium/media/base/audio_converter.cc

// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// AudioConverter implementation.  Uses MultiChannelSincResampler for resampling
// audio, ChannelMixer for channel mixing, and AudioPullFifo for buffering.
//
// Delay estimates are provided to InputCallbacks based on the frame delay
// information reported via the resampler and FIFO units.

#include "media/base/audio_converter.h"

#include <memory>

#include "base/containers/contains.h"
#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "base/logging.h"
#include "base/trace_event/trace_event.h"
#include "media/base/audio_bus.h"
#include "media/base/audio_pull_fifo.h"
#include "media/base/channel_mixer.h"
#include "media/base/multi_channel_resampler.h"
#include "media/base/vector_math.h"

namespace media {

AudioConverter::AudioConverter(const AudioParameters& input_params,
                               const AudioParameters& output_params,
                               bool disable_fifo)
    :{}

AudioConverter::~AudioConverter() = default;

void AudioConverter::AddInput(InputCallback* input) {}

void AudioConverter::RemoveInput(InputCallback* input) {}

void AudioConverter::Reset() {}

int AudioConverter::ChunkSize() const {}

void AudioConverter::PrimeWithSilence() {}

int AudioConverter::GetMaxInputFramesRequested(int output_frames_requested) {}

void AudioConverter::ConvertWithInfo(uint32_t initial_frames_delayed,
                                     const AudioGlitchInfo& glitch_info,
                                     AudioBus* dest) {}

void AudioConverter::Convert(AudioBus* dest) {}

void AudioConverter::SourceCallback(int fifo_frame_delay, AudioBus* dest) {}

void AudioConverter::ProvideInput(int resampler_frame_delay, AudioBus* dest) {}

void AudioConverter::CreateUnmixedAudioIfNecessary(int frames) {}

}  // namespace media