kodi
|
IAEStream Stream Interface for streaming audio. More...
#include <AEStream.h>
Classes | |
struct | ExtData |
Public Member Functions | |
virtual unsigned int | GetSpace ()=0 |
Returns the amount of space available in the stream. More... | |
virtual unsigned int | AddData (const uint8_t *const *data, unsigned int offset, unsigned int frames, ExtData *extData)=0 |
Add planar or interleaved PCM data to the stream. More... | |
virtual double | GetDelay ()=0 |
Returns the time in seconds that it will take for the next added packet to be heard from the speakers. More... | |
virtual CAESyncInfo | GetSyncInfo ()=0 |
Returns info about audio to clock synchronization. More... | |
virtual bool | IsBuffering ()=0 |
Returns if the stream is buffering. More... | |
virtual double | GetCacheTime ()=0 |
Returns the time in seconds of the stream's cached audio samples. More... | |
virtual double | GetCacheTotal ()=0 |
Returns the total time in seconds of the cache. More... | |
virtual double | GetMaxDelay ()=0 |
Returns the total time in seconds of maximum delay. More... | |
virtual void | Pause ()=0 |
Pauses the stream playback. | |
virtual void | Resume ()=0 |
Resumes the stream after pausing. | |
virtual void | Drain (bool wait)=0 |
Start draining the stream. More... | |
virtual bool | IsDraining ()=0 |
Returns true if the is stream draining. | |
virtual bool | IsDrained ()=0 |
Returns true if the is stream has finished draining. | |
virtual void | Flush ()=0 |
Flush all buffers dropping the audio data. | |
virtual float | GetVolume ()=0 |
Return the stream's current volume level. More... | |
virtual void | SetVolume (float volume)=0 |
Set the stream's volume level. More... | |
virtual float | GetReplayGain ()=0 |
Returns the stream's current replay gain factor. More... | |
virtual void | SetReplayGain (float factor)=0 |
Sets the stream's replay gain factor, this is used by formats such as MP3 that have attenuation information in their streams. More... | |
virtual float | GetAmplification ()=0 |
Gets the stream's volume amplification in linear units. More... | |
virtual void | SetAmplification (float amplify)=0 |
Sets the stream's volume amplification in linear units. More... | |
virtual void | SetFFmpegInfo (int profile, enum AVMatrixEncoding matrix_encoding, enum AVAudioServiceType audio_service_type)=0 |
Sets the stream ffmpeg information if present. More... | |
virtual unsigned int | GetFrameSize () const =0 |
Returns the size of one audio frame in bytes (channelCount * resolution) More... | |
virtual unsigned int | GetChannelCount () const =0 |
Returns the number of channels the stream is configured to accept. More... | |
virtual unsigned int | GetSampleRate () const =0 |
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... | |
virtual enum AEDataFormat | GetDataFormat () const =0 |
Return the data format the stream has been configured with. More... | |
virtual double | GetResampleRatio ()=0 |
Return the resample ratio. More... | |
virtual void | SetResampleRatio (double ratio)=0 |
Sets the resample ratio. More... | |
virtual void | SetResampleMode (int mode)=0 |
Sets the resamplling on/ff. | |
virtual void | RegisterAudioCallback (IAudioCallback *pCallback)=0 |
Registers the audio callback to call with each block of data, this is used by Audio Visualizations. More... | |
virtual void | UnRegisterAudioCallback ()=0 |
Unregisters the current audio callback. | |
virtual void | FadeVolume (float from, float target, unsigned int time) |
Fade the volume level over the specified time. More... | |
virtual bool | IsFading () |
Returns if a fade is still running. More... | |
virtual void | RegisterSlave (IAEStream *stream)=0 |
Slave a stream to resume when this stream has drained. | |
Friends | |
class | IAE |
IAEStream Stream Interface for streaming audio.
|
pure virtual |
Add planar or interleaved PCM data to the stream.
data | array of pointers to the planes |
offset | to frame in frames |
frames | number of frames |
pts | timestamp |
Implemented in ActiveAE::CActiveAEStream.
|
pure virtual |
Start draining the stream.
Implemented in ActiveAE::CActiveAEStream.
|
inlinevirtual |
Fade the volume level over the specified time.
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 |
Reimplemented in ActiveAE::CActiveAEStream.
|
pure virtual |
Gets the stream's volume amplification in linear units.
Implemented in ActiveAE::CActiveAEStream.
|
pure virtual |
Returns the time in seconds of the stream's cached audio samples.
Engine buffers excluded.
Implemented in ActiveAE::CActiveAEStream.
|
pure virtual |
Returns the total time in seconds of the cache.
Implemented in ActiveAE::CActiveAEStream.
|
pure virtual |
Returns the number of channels the stream is configured to accept.
Implemented in ActiveAE::CActiveAEStream.
|
pure virtual |
Return the data format the stream has been configured with.
Implemented in ActiveAE::CActiveAEStream.
|
pure virtual |
Returns the time in seconds that it will take for the next added packet to be heard from the speakers.
Implemented in ActiveAE::CActiveAEStream.
|
pure virtual |
Returns the size of one audio frame in bytes (channelCount * resolution)
Implemented in ActiveAE::CActiveAEStream.
|
pure virtual |
Returns the total time in seconds of maximum delay.
Implemented in ActiveAE::CActiveAEStream.
|
pure virtual |
Returns the stream's current replay gain factor.
Implemented in ActiveAE::CActiveAEStream.
|
pure virtual |
Return the resample ratio.
Implemented in ActiveAE::CActiveAEStream.
|
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()
Implemented in ActiveAE::CActiveAEStream.
|
pure virtual |
Returns the amount of space available in the stream.
Implemented in ActiveAE::CActiveAEStream.
|
pure virtual |
Returns info about audio to clock synchronization.
Implemented in ActiveAE::CActiveAEStream.
|
pure virtual |
Return the stream's current volume level.
Implemented in ActiveAE::CActiveAEStream.
|
pure virtual |
Returns if the stream is buffering.
Implemented in ActiveAE::CActiveAEStream.
|
inlinevirtual |
Returns if a fade is still running.
Reimplemented in ActiveAE::CActiveAEStream.
|
pure virtual |
Registers the audio callback to call with each block of data, this is used by Audio Visualizations.
pCallback | The callback |
Implemented in ActiveAE::CActiveAEStream.
|
pure virtual |
Sets the stream's volume amplification in linear units.
The | volume amplification factor between 1.0 and 1000.0 |
Implemented in ActiveAE::CActiveAEStream.
|
pure virtual |
Sets the stream ffmpeg information if present.
profile | |
matrix_encoding | |
audio_service_type |
Implemented in ActiveAE::CActiveAEStream.
|
pure virtual |
Sets the stream's replay gain factor, this is used by formats such as MP3 that have attenuation information in their streams.
factor | The replay gain factor |
Implemented in ActiveAE::CActiveAEStream.
|
pure virtual |
Sets the resample ratio.
ratio | the new sample rate ratio, calculated by ((double)desiredRate / (double)GetSampleRate()) |
Implemented in ActiveAE::CActiveAEStream.
|
pure virtual |
Set the stream's volume level.
volume | The new volume level between 0.0 and 1.0 |
Implemented in ActiveAE::CActiveAEStream.