#include "audio/utility/audio_frame_operations.h"
#include <string.h>
#include <algorithm>
#include <cstdint>
#include <utility>
#include "common_audio/include/audio_util.h"
#include "rtc_base/checks.h"
#include "rtc_base/numerics/safe_conversions.h"
namespace webrtc {
namespace {
const size_t kMuteFadeFrames = …;
const float kMuteFadeInc = …;
}
void AudioFrameOperations::QuadToStereo(
InterleavedView<const int16_t> src_audio,
InterleavedView<int16_t> dst_audio) { … }
int AudioFrameOperations::QuadToStereo(AudioFrame* frame) { … }
void AudioFrameOperations::DownmixChannels(
InterleavedView<const int16_t> src_audio,
InterleavedView<int16_t> dst_audio) { … }
void AudioFrameOperations::DownmixChannels(size_t dst_channels,
AudioFrame* frame) { … }
void AudioFrameOperations::UpmixChannels(size_t target_number_of_channels,
AudioFrame* frame) { … }
void AudioFrameOperations::SwapStereoChannels(AudioFrame* frame) { … }
void AudioFrameOperations::Mute(AudioFrame* frame,
bool previous_frame_muted,
bool current_frame_muted) { … }
void AudioFrameOperations::Mute(AudioFrame* frame) { … }
int AudioFrameOperations::ScaleWithSat(float scale, AudioFrame* frame) { … }
}