chromium/media/base/audio_buffer_converter.cc

// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifdef UNSAFE_BUFFERS_BUILD
// TODO(crbug.com/40285824): Remove this and convert code to safer constructs.
#pragma allow_unsafe_buffers
#endif

#include "media/base/audio_buffer_converter.h"

#include <algorithm>
#include <cmath>
#include <memory>

#include "base/check_op.h"
#include "media/base/audio_bus.h"
#include "media/base/audio_decoder_config.h"
#include "media/base/audio_timestamp_helper.h"
#include "media/base/sinc_resampler.h"
#include "media/base/timestamp_constants.h"
#include "media/base/vector_math.h"

namespace media {

// Is the config presented by |buffer| a config change from |params|?
static bool IsConfigChange(const AudioParameters& params,
                           const AudioBuffer& buffer) {}

AudioBufferConverter::AudioBufferConverter(const AudioParameters& output_params)
    :{}

AudioBufferConverter::~AudioBufferConverter() = default;

void AudioBufferConverter::AddInput(scoped_refptr<AudioBuffer> buffer) {}

bool AudioBufferConverter::HasNextBuffer() {}

scoped_refptr<AudioBuffer> AudioBufferConverter::GetNextBuffer() {}

void AudioBufferConverter::Reset() {}

void AudioBufferConverter::ResetTimestampState() {}

double AudioBufferConverter::ProvideInput(AudioBus* audio_bus,
                                          uint32_t frames_delayed,
                                          const AudioGlitchInfo& glitch_info) {}

void AudioBufferConverter::ResetConverter(const AudioBuffer& buffer) {}

void AudioBufferConverter::ConvertIfPossible() {}

void AudioBufferConverter::Flush() {}

}  // namespace media