Android-cuttlefish cvd tool
Namespaces | Functions | Variables
audio_channel_matrix.cpp File Reference
#include "cuttlefish/host/frontend/webrtc/audio_channel_matrix.h"
#include <algorithm>
#include <cstddef>
#include <cstdint>
#include <vector>
#include "absl/log/check.h"
#include "cuttlefish/host/frontend/webrtc/audio_settings.h"
Include dependency graph for audio_channel_matrix.cpp:

Namespaces

namespace  cuttlefish
 
namespace  cuttlefish::anonymous_namespace{audio_channel_matrix.cpp}
 

Functions

std::vector< std::vector< float > > cuttlefish::anonymous_namespace{audio_channel_matrix.cpp}::BuildDirectMappingMatrix (uint8_t dst_channels, uint8_t src_channels, float volume)
 
std::vector< std::vector< float > > cuttlefish::BuildChannelMixingMatrix (uint8_t dst_channels, uint8_t src_channels, float volume, float fade, float balance, bool ducked)
 

Variables

constexpr float cuttlefish::anonymous_namespace{audio_channel_matrix.cpp}::kMinus3dB = 0.7071f
 
constexpr float cuttlefish::anonymous_namespace{audio_channel_matrix.cpp}::kMinus6dB = 0.5f
 
constexpr float cuttlefish::anonymous_namespace{audio_channel_matrix.cpp}::kDuckedGain = 0.2f
 
constexpr uint8_t cuttlefish::anonymous_namespace{audio_channel_matrix.cpp}::kMono = GetChannelsCount(AudioChannelsLayout::Mono)
 
constexpr uint8_t cuttlefish::anonymous_namespace{audio_channel_matrix.cpp}::kStereo = GetChannelsCount(AudioChannelsLayout::Stereo)
 
constexpr uint8_t cuttlefish::anonymous_namespace{audio_channel_matrix.cpp}::kSurround51