Kodi Development  20.0
for Binary and Script based Add-Ons
CAEStream

Public Member Functions

unsigned int AddData (uint8_t *const *data, unsigned int offset, unsigned int frames, double pts=0, bool hasDownmix=false, double centerMixLevel=1.0)
 Add planar or interleaved PCM data to the stream. More...
 
 CAEStream (AudioEngineFormat &format, unsigned int options=0)
 Contructs new class to an Kodi IAEStream in the format specified. More...
 
void Drain (bool wait=true)
 Start draining the stream. More...
 
void Flush ()
 Flush all buffers dropping the audio data. More...
 
float GetAmplification ()
 Gets the stream's volume amplification in linear units. More...
 
double GetCacheTime ()
 Returns the time in seconds of the stream's cached audio samples. Engine buffers excluded. More...
 
double GetCacheTotal ()
 Returns the total time in seconds of the cache. More...
 
unsigned int GetChannelCount () const
 Returns the number of channels the stream is configured to accept. More...
 
AudioEngineDataFormat GetDataFormat () const
 Return the data format the stream has been configured with. More...
 
double GetDelay ()
 Returns the time in seconds that it will take for the next added packet to be heard from the speakers. More...
 
unsigned int GetFrameSize () const
 Returns the size of one audio frame in bytes (channelCount * resolution). More...
 
double GetResampleRatio ()
 Return the resample ratio. More...
 
unsigned int GetSampleRate () const
 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(). More...
 
unsigned int GetSpace ()
 Returns the amount of space available in the stream. More...
 
float GetVolume ()
 Return the stream's current volume level. More...
 
bool IsBuffering ()
 Returns if the stream is buffering. More...
 
bool IsDrained ()
 Returns true if the is stream has finished draining. More...
 
bool IsDraining ()
 Returns true if the is stream draining. More...
 
void Pause ()
 Pauses the stream playback. More...
 
void Resume ()
 Resumes the stream after pausing. More...
 
void SetAmplification (float amplify)
 Sets the stream's volume amplification in linear units. More...
 
void SetResampleRatio (double ratio)
 Sets the resample ratio. More...
 
void SetVolume (float volume)
 Set the stream's volume level. More...
 
 ~CAEStream ()
 Class destructor. More...
 

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