Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
pcm_format.h File Reference

PCM format. More...

Include dependency graph for pcm_format.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  roc::audio::PcmFormat
 PCM format description. More...
 
struct  roc::audio::PcmTraits
 PCM format meta-information. More...
 

Namespaces

 roc
 Root namespace.
 
 roc::audio
 Audio frames and audio processing.
 

Enumerations

enum  roc::audio::PcmCode {
  roc::audio::PcmCode_SInt8 , roc::audio::PcmCode_UInt8 , roc::audio::PcmCode_SInt16 , roc::audio::PcmCode_UInt16 ,
  roc::audio::PcmCode_SInt18 , roc::audio::PcmCode_UInt18 , roc::audio::PcmCode_SInt18_3 , roc::audio::PcmCode_UInt18_3 ,
  roc::audio::PcmCode_SInt18_4 , roc::audio::PcmCode_UInt18_4 , roc::audio::PcmCode_SInt20 , roc::audio::PcmCode_UInt20 ,
  roc::audio::PcmCode_SInt20_3 , roc::audio::PcmCode_UInt20_3 , roc::audio::PcmCode_SInt20_4 , roc::audio::PcmCode_UInt20_4 ,
  roc::audio::PcmCode_SInt24 , roc::audio::PcmCode_UInt24 , roc::audio::PcmCode_SInt24_4 , roc::audio::PcmCode_UInt24_4 ,
  roc::audio::PcmCode_SInt32 , roc::audio::PcmCode_UInt32 , roc::audio::PcmCode_SInt64 , roc::audio::PcmCode_UInt64 ,
  roc::audio::PcmCode_Float32 , roc::audio::PcmCode_Float64 , roc::audio::PcmCode_Max
}
 PCM sample binary code. More...
 
enum  roc::audio::PcmEndian { roc::audio::PcmEndian_Native , roc::audio::PcmEndian_Big , roc::audio::PcmEndian_Little }
 PCM sample endianess. More...
 

Functions

const char * roc::audio::pcm_format_to_str (const PcmFormat &fmt)
 Get string name of PCM format. More...
 
ROC_ATTR_NODISCARD bool roc::audio::pcm_format_parse (const char *str, PcmFormat &fmt)
 Parse PCM format from string name. More...
 
PcmTraits roc::audio::pcm_format_traits (const PcmFormat &fmt)
 Get traits for PCM format. More...
 

Detailed Description

PCM format.

Definition in file pcm_format.h.