A class that represents media source audio derived from MediaSource class, which represents the source of media data.  
 More...
#include <IMediaPipeline.h>
 | 
|   | MediaSourceAudio (const std::string &mimeType, bool hasDrm=true, const AudioConfig &audioConfig=AudioConfig(), SegmentAlignment alignment=SegmentAlignment::UNDEFINED, StreamFormat streamFormat=StreamFormat::UNDEFINED, const std::shared_ptr< CodecData > &codecData=nullptr) | 
|   | Constructor for audio specific configuration.  
  | 
|   | 
| MediaSourceType  | getType () const override | 
|   | Return the source type.  
  | 
|   | 
| std::unique_ptr< MediaSource >  | copy () const override | 
|   | Create a copy.  
  | 
|   | 
| const AudioConfig &  | getAudioConfig () const | 
|   | Gets the audio specific configuration.  
  | 
|   | 
| std::unique_ptr< MediaSource >  | copy () const | 
|   | Create a copy.  
  | 
|   | 
| 
SegmentAlignment  | getSegmentAlignment () const | 
|   | Gets the segment alignment. 
  | 
|   | 
| 
const std::shared_ptr< CodecData > &  | getCodecData () const | 
|   | Gets the codec data. 
  | 
|   | 
| 
StreamFormat  | getStreamFormat () const | 
|   | Gets the stream format. 
  | 
|   | 
| 
virtual  | ~MediaSource () | 
|   | Virtual destructor. 
  | 
|   | 
| 
std::string  | getMimeType () const | 
|   | Return the MIME type. 
  | 
|   | 
| 
bool  | getHasDrm () const | 
|   | Return if source has drm. 
  | 
|   | 
| 
SourceConfigType  | getConfigType () const | 
|   | Return the source config type. 
  | 
|   | 
| 
int32_t  | getId () const | 
|   | Return the source id. 
  | 
|   | 
| 
void  | setId (int32_t id) | 
|   | Set the source id. 
  | 
|   | 
 | 
| 
AudioConfig  | m_audioConfig | 
|   | Variable that stores the audio specific configuration. 
  | 
|   | 
| 
SegmentAlignment  | m_alignment | 
|   | The alignment of media segment. 
  | 
|   | 
| 
StreamFormat  | m_streamFormat | 
|   | The stream format. 
  | 
|   | 
| 
std::shared_ptr< CodecData >  | m_codecData | 
|   | Additional data for decoder. 
  | 
|   | 
| 
int32_t  | m_id | 
|   | The source id. Parameter will be set by a successful call to attachSource() 
  | 
|   | 
| 
SourceConfigType  | m_configType | 
|   | The source config type. 
  | 
|   | 
| 
std::string  | m_mimeType | 
|   | The MIME type. 
  | 
|   | 
| 
bool  | m_hasDrm | 
|   | Parameter to check if encrypted frames will be used for this source. 
  | 
|   | 
A class that represents media source audio derived from MediaSource class, which represents the source of media data. 
 
◆ MediaSourceAudio()
  
  
      
        
          | firebolt::rialto::IMediaPipeline::MediaSourceAudio::MediaSourceAudio  | 
          ( | 
          const std::string &  | 
          mimeType,  | 
         
        
           | 
           | 
          bool  | 
          hasDrm = true,  | 
         
        
           | 
           | 
          const AudioConfig &  | 
          audioConfig = AudioConfig(),  | 
         
        
           | 
           | 
          SegmentAlignment  | 
          alignment = SegmentAlignment::UNDEFINED,  | 
         
        
           | 
           | 
          StreamFormat  | 
          streamFormat = StreamFormat::UNDEFINED,  | 
         
        
           | 
           | 
          const std::shared_ptr< CodecData > &  | 
          codecData = nullptr  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inline   | 
  
 
Constructor for audio specific configuration. 
- Parameters
 - 
  
    | [in] | mimeType | : The mime type string.  | 
    | [in] | hasDrm | : Information if source will use drm  | 
    | [in] | audioConfig | : The audio specific configuration.  | 
    | [in] | alignment | : The alignment of media segment.  | 
    | [in] | streamFormat | : The stream format  | 
    | [in] | codecData | : The additional data for decoder  | 
  
   
 
 
◆ copy()
  
  
      
        
          | std::unique_ptr< MediaSource > firebolt::rialto::IMediaPipeline::MediaSourceAudio::copy  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inlineoverridevirtual   | 
  
 
 
◆ getAudioConfig()
  
  
      
        
          | const AudioConfig & firebolt::rialto::IMediaPipeline::MediaSourceAudio::getAudioConfig  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Gets the audio specific configuration. 
- Return values
 - 
  
    | audio | specific configuration  | 
  
   
 
 
◆ getType()
  
  
      
        
          | MediaSourceType firebolt::rialto::IMediaPipeline::MediaSourceAudio::getType  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inlineoverridevirtual   | 
  
 
 
The documentation for this class was generated from the following file: