#include "modules/audio_coding/test/PCMFile.h"
#include <ctype.h>
#include <stdio.h>
#include <string.h>
#include "absl/strings/string_view.h"
#include "rtc_base/checks.h"
#include "test/gtest.h"
namespace webrtc {
#define MAX_FILE_NAME_LENGTH_BYTE …
PCMFile::PCMFile()
: … { … }
PCMFile::PCMFile(uint32_t timestamp)
: … { … }
PCMFile::~PCMFile() { … }
int16_t PCMFile::ChooseFile(std::string* file_name,
int16_t max_len,
uint16_t* frequency_hz) { … }
void PCMFile::Open(absl::string_view file_name,
uint16_t frequency,
absl::string_view mode,
bool auto_rewind) { … }
int32_t PCMFile::SamplingFrequency() const { … }
uint16_t PCMFile::PayloadLength10Ms() const { … }
int32_t PCMFile::Read10MsData(AudioFrame& audio_frame) { … }
void PCMFile::Write10MsData(const AudioFrame& audio_frame) { … }
void PCMFile::Write10MsData(const int16_t* playout_buffer,
size_t length_smpls) { … }
void PCMFile::Close() { … }
void PCMFile::FastForward(int num_10ms_blocks) { … }
void PCMFile::Rewind() { … }
bool PCMFile::Rewinded() { … }
void PCMFile::SaveStereo(bool is_stereo) { … }
void PCMFile::ReadStereo(bool is_stereo) { … }
void PCMFile::SetNum10MsBlocksToRead(int value) { … }
}