Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
roc::audio::PcmFormat Struct Reference

PCM format description. More...

#include <pcm_format.h>

Public Member Functions

 PcmFormat ()
 Initialize. More...
 
 PcmFormat (PcmCode enc, PcmEndian end)
 Initialize. More...
 
bool operator== (const PcmFormat &other) const
 Check two formats for equality. More...
 
bool operator!= (const PcmFormat &other) const
 Check two formats for equality. More...
 

Public Attributes

PcmCode code
 Sample binary code. More...
 
PcmEndian endian
 Sample endianess. More...
 

Detailed Description

PCM format description.

Definition at line 61 of file pcm_format.h.

Constructor & Destructor Documentation

◆ PcmFormat() [1/2]

roc::audio::PcmFormat::PcmFormat ( )
inline

Initialize.

Definition at line 69 of file pcm_format.h.

◆ PcmFormat() [2/2]

roc::audio::PcmFormat::PcmFormat ( PcmCode  enc,
PcmEndian  end 
)
inline

Initialize.

Definition at line 75 of file pcm_format.h.

Member Function Documentation

◆ operator!=()

bool roc::audio::PcmFormat::operator!= ( const PcmFormat other) const
inline

Check two formats for equality.

Definition at line 86 of file pcm_format.h.

◆ operator==()

bool roc::audio::PcmFormat::operator== ( const PcmFormat other) const
inline

Check two formats for equality.

Definition at line 81 of file pcm_format.h.

Member Data Documentation

◆ code

PcmCode roc::audio::PcmFormat::code

Sample binary code.

Definition at line 63 of file pcm_format.h.

◆ endian

PcmEndian roc::audio::PcmFormat::endian

Sample endianess.

Definition at line 66 of file pcm_format.h.


The documentation for this struct was generated from the following file: