#include <AEStream.h>
IAEStream Stream Interface for streaming audio 
 
◆ IAEStream()
◆ ~IAEStream()
  
  
      
        
          | virtual IAEStream::~IAEStream  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protectedvirtualdefault   | 
  
 
 
◆ AddData()
  
  
      
        
          | virtual unsigned int IAEStream::AddData  | 
          ( | 
          const uint8_t *const * |           data,  | 
         
        
           | 
           | 
          unsigned int |           offset,  | 
         
        
           | 
           | 
          unsigned int |           frames,  | 
         
        
           | 
           | 
          ExtData * |           extData ) | 
         
       
   | 
  
pure virtual   | 
  
 
Add planar or interleaved PCM data to the stream 
- Parameters
 - 
  
    | data | array of pointers to the planes  | 
    | offset | to frame in frames  | 
    | frames | number of frames  | 
    | pts | timestamp  | 
  
   
- Returns
 - The number of frames consumed 
 
Implemented in ActiveAE::CActiveAEStream.
 
 
◆ Drain()
  
  
      
        
          | virtual void IAEStream::Drain  | 
          ( | 
          bool |           wait | ) | 
           | 
         
       
   | 
  
pure virtual   | 
  
 
 
◆ FadeVolume()
  
  
      
        
          | virtual void IAEStream::FadeVolume  | 
          ( | 
          float |           from,  | 
         
        
           | 
           | 
          float |           target,  | 
         
        
           | 
           | 
          unsigned int |           time ) | 
         
       
   | 
  
inlinevirtual   | 
  
 
Fade the volume level over the specified time 
- Parameters
 - 
  
    | from | The volume level to fade from (0.0f-1.0f) - See notes  | 
    | target | The volume level to fade to (0.0f-1.0f)  | 
    | time | The amount of time in milliseconds for the fade to occur  | 
  
   
- Note
 - The from parameter does not set the streams volume, it is only used to calculate the fade time properly 
 
Reimplemented in ActiveAE::CActiveAEStream.
 
 
◆ Flush()
  
  
      
        
          | virtual void IAEStream::Flush  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
pure virtual   | 
  
 
 
◆ GetAmplification()
  
  
      
        
          | virtual float IAEStream::GetAmplification  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
pure virtual   | 
  
 
Gets the stream's volume amplification in linear units. 
- Returns
 - The volume amplification factor between 1.0 and 1000.0 
 
Implemented in ActiveAE::CActiveAEStream.
 
 
◆ GetCacheTime()
  
  
      
        
          | virtual double IAEStream::GetCacheTime  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
pure virtual   | 
  
 
Returns the time in seconds of the stream's cached audio samples. Engine buffers excluded. 
- Returns
 - seconds 
 
Implemented in ActiveAE::CActiveAEStream.
 
 
◆ GetCacheTotal()
  
  
      
        
          | virtual double IAEStream::GetCacheTotal  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
pure virtual   | 
  
 
 
◆ GetChannelCount()
  
  
      
        
          | virtual unsigned int IAEStream::GetChannelCount  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
pure virtual   | 
  
 
Returns the number of channels the stream is configured to accept 
- Returns
 - The channel count 
 
Implemented in ActiveAE::CActiveAEStream.
 
 
◆ GetDataFormat()
  
  
      
        
          | virtual enum AEDataFormat IAEStream::GetDataFormat  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
pure virtual   | 
  
 
Return the data format the stream has been configured with 
- Returns
 - The stream's data format (eg, AE_FMT_S16LE) 
 
Implemented in ActiveAE::CActiveAEStream.
 
 
◆ GetDelay()
  
  
      
        
          | virtual double IAEStream::GetDelay  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
pure virtual   | 
  
 
Returns the time in seconds that it will take for the next added packet to be heard from the speakers. 
- Returns
 - seconds 
 
Implemented in ActiveAE::CActiveAEStream.
 
 
◆ GetFrameSize()
  
  
      
        
          | virtual unsigned int IAEStream::GetFrameSize  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
pure virtual   | 
  
 
Returns the size of one audio frame in bytes (channelCount * resolution) 
- Returns
 - The size in bytes of one frame 
 
Implemented in ActiveAE::CActiveAEStream.
 
 
◆ GetMaxDelay()
  
  
      
        
          | virtual double IAEStream::GetMaxDelay  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
pure virtual   | 
  
 
 
◆ GetReplayGain()
  
  
      
        
          | virtual float IAEStream::GetReplayGain  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
pure virtual   | 
  
 
Returns the stream's current replay gain factor 
- Returns
 - The replay gain factor between 0.0 and 1.0 
 
Implemented in ActiveAE::CActiveAEStream.
 
 
◆ GetResampleRatio()
  
  
      
        
          | virtual double IAEStream::GetResampleRatio  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
pure virtual   | 
  
 
Return the resample ratio 
- Note
 - This will return an undefined value if the stream is not resampling 
 
- Returns
 - the current resample ratio or undefined if the stream is not resampling 
 
Implemented in ActiveAE::CActiveAEStream.
 
 
◆ GetSampleRate()
  
  
      
        
          | virtual unsigned int IAEStream::GetSampleRate  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
pure virtual   | 
  
 
Returns the stream's sample rate, if the stream is using a dynamic sample rate, this value will NOT reflect any changes made by calls to SetResampleRatio() 
- Returns
 - The stream's sample rate (eg, 48000) 
 
Implemented in ActiveAE::CActiveAEStream.
 
 
◆ GetSpace()
  
  
      
        
          | virtual unsigned int IAEStream::GetSpace  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
pure virtual   | 
  
 
Returns the amount of space available in the stream 
- Returns
 - The number of bytes AddData will consume 
 
Implemented in ActiveAE::CActiveAEStream.
 
 
◆ GetSyncInfo()
◆ GetVolume()
  
  
      
        
          | virtual float IAEStream::GetVolume  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
pure virtual   | 
  
 
Return the stream's current volume level 
- Returns
 - The volume level between 0.0 and 1.0 
 
Implemented in ActiveAE::CActiveAEStream.
 
 
◆ IsBuffering()
  
  
      
        
          | virtual bool IAEStream::IsBuffering  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
pure virtual   | 
  
 
 
◆ IsDrained()
  
  
      
        
          | virtual bool IAEStream::IsDrained  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
pure virtual   | 
  
 
 
◆ IsDraining()
  
  
      
        
          | virtual bool IAEStream::IsDraining  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
pure virtual   | 
  
 
 
◆ IsFading()
  
  
      
        
          | virtual bool IAEStream::IsFading  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inlinevirtual   | 
  
 
Returns if a fade is still running 
- Returns
 - true if a fade is in progress, otherwise false 
 
Reimplemented in ActiveAE::CActiveAEStream.
 
 
◆ Pause()
  
  
      
        
          | virtual void IAEStream::Pause  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
pure virtual   | 
  
 
 
◆ RegisterAudioCallback()
Registers the audio callback to call with each block of data, this is used by Audio Visualizations 
- Warning
 - Currently the callbacks require stereo float data in blocks of 512 samples, any deviation from this may crash XBMC, or cause junk to be rendered 
 
- Parameters
 - 
  
  
 
Implemented in ActiveAE::CActiveAEStream.
 
 
◆ RegisterSlave()
◆ Resume()
  
  
      
        
          | virtual void IAEStream::Resume  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
pure virtual   | 
  
 
 
◆ SetAmplification()
  
  
      
        
          | virtual void IAEStream::SetAmplification  | 
          ( | 
          float |           amplify | ) | 
           | 
         
       
   | 
  
pure virtual   | 
  
 
Sets the stream's volume amplification in linear units. 
- Parameters
 - 
  
    | The | volume amplification factor between 1.0 and 1000.0  | 
  
   
Implemented in ActiveAE::CActiveAEStream.
 
 
◆ SetFFmpegInfo()
  
  
      
        
          | virtual void IAEStream::SetFFmpegInfo  | 
          ( | 
          int |           profile,  | 
         
        
           | 
           | 
          enum AVMatrixEncoding |           matrix_encoding,  | 
         
        
           | 
           | 
          enum AVAudioServiceType |           audio_service_type ) | 
         
       
   | 
  
pure virtual   | 
  
 
Sets the stream ffmpeg information if present.
- Parameters
 - 
  
    | profile |  | 
    | matrix_encoding |  | 
    | audio_service_type |  | 
  
   
 
Implemented in ActiveAE::CActiveAEStream.
 
 
◆ SetReplayGain()
  
  
      
        
          | virtual void IAEStream::SetReplayGain  | 
          ( | 
          float |           factor | ) | 
           | 
         
       
   | 
  
pure virtual   | 
  
 
Sets the stream's replay gain factor, this is used by formats such as MP3 that have attenuation information in their streams 
- Parameters
 - 
  
    | factor | The replay gain factor  | 
  
   
Implemented in ActiveAE::CActiveAEStream.
 
 
◆ SetResampleMode()
  
  
      
        
          | virtual void IAEStream::SetResampleMode  | 
          ( | 
          int |           mode | ) | 
           | 
         
       
   | 
  
pure virtual   | 
  
 
 
◆ SetResampleRatio()
  
  
      
        
          | virtual void IAEStream::SetResampleRatio  | 
          ( | 
          double |           ratio | ) | 
           | 
         
       
   | 
  
pure virtual   | 
  
 
Sets the resample ratio 
- Note
 - This function may return false if the stream is not resampling, if you wish to use this be sure to set the AESTREAM_FORCE_RESAMPLE option 
 
- Parameters
 - 
  
    | ratio | the new sample rate ratio, calculated by ((double)desiredRate / (double)GetSampleRate())  | 
  
   
Implemented in ActiveAE::CActiveAEStream.
 
 
◆ SetVolume()
  
  
      
        
          | virtual void IAEStream::SetVolume  | 
          ( | 
          float |           volume | ) | 
           | 
         
       
   | 
  
pure virtual   | 
  
 
Set the stream's volume level 
- Parameters
 - 
  
    | volume | The new volume level between 0.0 and 1.0  | 
  
   
Implemented in ActiveAE::CActiveAEStream.
 
 
◆ UnRegisterAudioCallback()
  
  
      
        
          | virtual void IAEStream::UnRegisterAudioCallback  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
pure virtual   | 
  
 
 
◆ IAE
The documentation for this class was generated from the following file: