webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Member Functions | Static Public Member Functions | List of all members
webrtc::PCMFile Class Reference

#include <PCMFile.h>

Public Member Functions

 PCMFile ()
 
 PCMFile (uint32_t timestamp)
 
 ~PCMFile ()
 
void Open (const std::string &filename, uint16_t frequency, const char *mode, bool auto_rewind=false)
 
int32_t Read10MsData (AudioFrame &audio_frame)
 
void Write10MsData (int16_t *playout_buffer, size_t length_smpls)
 
void Write10MsData (AudioFrame &audio_frame)
 
uint16_t PayloadLength10Ms () const
 
int32_t SamplingFrequency () const
 
void Close ()
 
bool EndOfFile () const
 
void FastForward (int num_10ms_blocks)
 
void Rewind ()
 
bool Rewinded ()
 
void SaveStereo (bool is_stereo=true)
 
void ReadStereo (bool is_stereo=true)
 
void SetNum10MsBlocksToRead (int value)
 
 PCMFile ()
 
 PCMFile (uint32_t timestamp)
 
 ~PCMFile ()
 
void Open (const std::string &filename, uint16_t frequency, const char *mode, bool auto_rewind=false)
 
int32_t Read10MsData (AudioFrame &audio_frame)
 
void Write10MsData (int16_t *playout_buffer, size_t length_smpls)
 
void Write10MsData (AudioFrame &audio_frame)
 
uint16_t PayloadLength10Ms () const
 
int32_t SamplingFrequency () const
 
void Close ()
 
bool EndOfFile () const
 
void FastForward (int num_10ms_blocks)
 
void Rewind ()
 
bool Rewinded ()
 
void SaveStereo (bool is_stereo=true)
 
void ReadStereo (bool is_stereo=true)
 
void SetNum10MsBlocksToRead (int value)
 

Static Public Member Functions

static int16_t ChooseFile (std::string *file_name, int16_t max_len, uint16_t *frequency_hz)
 
static int16_t ChooseFile (std::string *file_name, int16_t max_len, uint16_t *frequency_hz)
 

Constructor & Destructor Documentation

◆ PCMFile() [1/4]

webrtc::PCMFile::PCMFile ( )

◆ PCMFile() [2/4]

webrtc::PCMFile::PCMFile ( uint32_t  timestamp)

◆ ~PCMFile() [1/2]

webrtc::PCMFile::~PCMFile ( )

◆ PCMFile() [3/4]

webrtc::PCMFile::PCMFile ( )

◆ PCMFile() [4/4]

webrtc::PCMFile::PCMFile ( uint32_t  timestamp)

◆ ~PCMFile() [2/2]

webrtc::PCMFile::~PCMFile ( )

Member Function Documentation

◆ ChooseFile() [1/2]

int16_t webrtc::PCMFile::ChooseFile ( std::string file_name,
int16_t  max_len,
uint16_t frequency_hz 
)
static

◆ ChooseFile() [2/2]

static int16_t webrtc::PCMFile::ChooseFile ( std::string file_name,
int16_t  max_len,
uint16_t frequency_hz 
)
static

◆ Close() [1/2]

void webrtc::PCMFile::Close ( )

◆ Close() [2/2]

void webrtc::PCMFile::Close ( )

◆ EndOfFile() [1/2]

bool webrtc::PCMFile::EndOfFile ( ) const
inline

◆ EndOfFile() [2/2]

bool webrtc::PCMFile::EndOfFile ( ) const
inline

◆ FastForward() [1/2]

void webrtc::PCMFile::FastForward ( int  num_10ms_blocks)

◆ FastForward() [2/2]

void webrtc::PCMFile::FastForward ( int  num_10ms_blocks)

◆ Open() [1/2]

void webrtc::PCMFile::Open ( const std::string filename,
uint16_t  frequency,
const char *  mode,
bool  auto_rewind = false 
)

◆ Open() [2/2]

void webrtc::PCMFile::Open ( const std::string filename,
uint16_t  frequency,
const char *  mode,
bool  auto_rewind = false 
)

◆ PayloadLength10Ms() [1/2]

uint16_t webrtc::PCMFile::PayloadLength10Ms ( ) const

◆ PayloadLength10Ms() [2/2]

uint16_t webrtc::PCMFile::PayloadLength10Ms ( ) const

◆ Read10MsData() [1/2]

int32_t webrtc::PCMFile::Read10MsData ( AudioFrame audio_frame)

◆ Read10MsData() [2/2]

int32_t webrtc::PCMFile::Read10MsData ( AudioFrame audio_frame)

◆ ReadStereo() [1/2]

void webrtc::PCMFile::ReadStereo ( bool  is_stereo = true)

◆ ReadStereo() [2/2]

void webrtc::PCMFile::ReadStereo ( bool  is_stereo = true)

◆ Rewind() [1/2]

void webrtc::PCMFile::Rewind ( )

◆ Rewind() [2/2]

void webrtc::PCMFile::Rewind ( )

◆ Rewinded() [1/2]

bool webrtc::PCMFile::Rewinded ( )

◆ Rewinded() [2/2]

bool webrtc::PCMFile::Rewinded ( )

◆ SamplingFrequency() [1/2]

int32_t webrtc::PCMFile::SamplingFrequency ( ) const

◆ SamplingFrequency() [2/2]

int32_t webrtc::PCMFile::SamplingFrequency ( ) const

◆ SaveStereo() [1/2]

void webrtc::PCMFile::SaveStereo ( bool  is_stereo = true)

◆ SaveStereo() [2/2]

void webrtc::PCMFile::SaveStereo ( bool  is_stereo = true)

◆ SetNum10MsBlocksToRead() [1/2]

void webrtc::PCMFile::SetNum10MsBlocksToRead ( int  value)

◆ SetNum10MsBlocksToRead() [2/2]

void webrtc::PCMFile::SetNum10MsBlocksToRead ( int  value)

◆ Write10MsData() [1/4]

void webrtc::PCMFile::Write10MsData ( int16_t playout_buffer,
size_t  length_smpls 
)

◆ Write10MsData() [2/4]

void webrtc::PCMFile::Write10MsData ( int16_t playout_buffer,
size_t  length_smpls 
)

◆ Write10MsData() [3/4]

void webrtc::PCMFile::Write10MsData ( AudioFrame audio_frame)

◆ Write10MsData() [4/4]

void webrtc::PCMFile::Write10MsData ( AudioFrame audio_frame)

The documentation for this class was generated from the following files: