Audio format structure
The audio format structure that fully defines a stream's audio information.  
More...
Audio format structure
The audio format structure that fully defines a stream's audio information. 
With the help of this format information, Kodi adjusts its processing accordingly.
The following table contains values that can be set with class AudioEngineFormat : 
Further is CompareFormat included to compare this class with another.    
◆ CompareFormat()
Function to compare the format structure with another. 
 
 
◆ GetChannelLayout()
  
  
      
        
          | std::vector< enum AudioEngineChannel > kodi::audioengine::AudioEngineFormat::GetChannelLayout  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ GetDataFormat()
◆ GetEncodedRate()
  
  
      
        
          | unsigned int kodi::audioengine::AudioEngineFormat::GetEncodedRate  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ GetFramesAmount()
  
  
      
        
          | unsigned int kodi::audioengine::AudioEngineFormat::GetFramesAmount  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ GetFrameSize()
  
  
      
        
          | unsigned int kodi::audioengine::AudioEngineFormat::GetFrameSize  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ GetSampleRate()
  
  
      
        
          | unsigned int kodi::audioengine::AudioEngineFormat::GetSampleRate  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ SetChannelLayout()
  
  
      
        
          | void kodi::audioengine::AudioEngineFormat::SetChannelLayout  | 
          ( | 
          const std::vector< enum AudioEngineChannel > & |           layout | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
The stream's channel layout. 
 
 
◆ SetDataFormat()
The stream's data format (eg, AUDIOENGINE_FMT_S16LE) 
 
 
◆ SetEncodedRate()
  
  
      
        
          | void kodi::audioengine::AudioEngineFormat::SetEncodedRate  | 
          ( | 
          unsigned int |           rate | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
The encoded streams sample rate if a bitstream, otherwise undefined. 
 
 
◆ SetFramesAmount()
  
  
      
        
          | void kodi::audioengine::AudioEngineFormat::SetFramesAmount  | 
          ( | 
          unsigned int |           frames | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
The number of frames per period. 
 
 
◆ SetFrameSize()
  
  
      
        
          | void kodi::audioengine::AudioEngineFormat::SetFrameSize  | 
          ( | 
          unsigned int |           frameSize | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
The size of one frame in bytes. 
 
 
◆ SetSampleRate()
  
  
      
        
          | void kodi::audioengine::AudioEngineFormat::SetSampleRate  | 
          ( | 
          unsigned int |           rate | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
The stream's sample rate (eg, 48000)