Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
|
#include <AE.h>
Public Types | |
using | StreamPtr = std::unique_ptr<IAEStream, IAEStreamDeleter> |
using | SoundPtr = std::unique_ptr<IAESound, IAESoundDeleter> |
Public Member Functions | |
virtual void | Shutdown () |
Called when the application needs to terminate the engine. | |
virtual bool | Suspend ()=0 |
Suspends output and de-initializes sink. | |
virtual bool | Resume ()=0 |
Resumes output and re-initializes sink. | |
virtual bool | IsSuspended () |
Get the current Suspend() state. | |
virtual float | GetVolume ()=0 |
Returns the current master volume level of the AudioEngine. | |
virtual void | SetVolume (const float volume)=0 |
Sets the master volume level of the AudioEngine. | |
virtual void | SetMute (const bool enabled)=0 |
Set the mute state (does not affect volume level value) | |
virtual bool | IsMuted ()=0 |
Get the current mute state. | |
virtual StreamPtr | MakeStream (AEAudioFormat &audioFormat, unsigned int options=0, IAEClockCallback *clock=NULL)=0 |
Creates and returns a new IAEStream in the format specified, this function should never fail. | |
virtual SoundPtr | MakeSound (const std::string &file)=0 |
Creates a new IAESound that is ready to play the specified file. | |
virtual void | EnumerateOutputDevices (AEDeviceList &devices, bool passthrough)=0 |
Enumerate the supported audio output devices. | |
virtual bool | SupportsRaw (AEAudioFormat &format) |
Returns true if the AudioEngine supports AE_FMT_RAW streams for use with formats such as IEC61937. | |
virtual bool | SupportsSilenceTimeout () |
Returns true if the AudioEngine supports drain mode which is not streaming silence when idle. | |
virtual bool | UsesDtsCoreFallback () |
Returns true if the AudioEngine is currently configured to extract the DTS Core from DTS-HD streams. | |
virtual bool | HasStereoAudioChannelCount () |
Returns true if the AudioEngine is currently configured for stereo audio. | |
virtual bool | HasHDAudioChannelCount () |
Returns true if the AudioEngine is currently configured for HD audio (more than 5.1) | |
virtual void | RegisterAudioCallback (IAudioCallback *pCallback) |
virtual void | UnregisterAudioCallback (IAudioCallback *pCallback) |
virtual bool | SupportsQualityLevel (enum AEQuality level) |
Returns true if AudioEngine supports specified quality level. | |
virtual bool | IsSettingVisible (const std::string &settingId) |
AE decides whether this settings should be displayed. | |
virtual void | KeepConfiguration (unsigned int millis) |
Instruct AE to keep configuration for a specified time. | |
virtual void | DeviceChange () |
Instruct AE to re-initialize, e.g. after ELD change event. | |
virtual void | DeviceCountChange (const std::string &driver) |
Instruct AE to re-initialize, e.g. after ELD change event. | |
virtual bool | GetCurrentSinkFormat (AEAudioFormat &SinkFormat) |
Get the current sink data format. | |
Protected Member Functions | |
IAE ()=default | |
virtual | ~IAE ()=default |
virtual void | Start ()=0 |
Initializes the AudioEngine, called by CFactory when it is time to initialize the audio engine. | |
Friends | |
class | IAEStreamDeleter |
class | IAESoundDeleter |
struct | ADDON::Interface_AudioEngine |
IAE Interface.
using IAE::SoundPtr = std::unique_ptr<IAESound, IAESoundDeleter> |
using IAE::StreamPtr = std::unique_ptr<IAEStream, IAEStreamDeleter> |
|
protecteddefault |
|
protectedvirtualdefault |
|
inlinevirtual |
Instruct AE to re-initialize, e.g. after ELD change event.
Reimplemented in ActiveAE::CActiveAE.
|
inlinevirtual |
Instruct AE to re-initialize, e.g. after ELD change event.
Reimplemented in ActiveAE::CActiveAE.
|
pure virtual |
Enumerate the supported audio output devices.
devices | The device list to append supported devices to |
passthrough | True if only passthrough devices are wanted |
Implemented in ActiveAE::CActiveAE.
|
inlinevirtual |
Get the current sink data format.
Current | sink data format. For more details see AEAudioFormat. |
Reimplemented in ActiveAE::CActiveAE.
|
pure virtual |
Returns the current master volume level of the AudioEngine.
Implemented in ActiveAE::CActiveAE.
|
inlinevirtual |
Returns true if the AudioEngine is currently configured for HD audio (more than 5.1)
Reimplemented in ActiveAE::CActiveAE.
|
inlinevirtual |
Returns true if the AudioEngine is currently configured for stereo audio.
Reimplemented in ActiveAE::CActiveAE.
|
pure virtual |
|
inlinevirtual |
AE decides whether this settings should be displayed.
Reimplemented in ActiveAE::CActiveAE.
|
inlinevirtual |
Get the current Suspend() state.
Used by players to determine if audio is being processed Default is true so players drop audio or pause if engine unloaded
Reimplemented in ActiveAE::CActiveAE.
Instruct AE to keep configuration for a specified time.
millis | time for which old configuration should be kept |
Reimplemented in ActiveAE::CActiveAE.
|
pure virtual |
Creates a new IAESound that is ready to play the specified file.
file | The WAV file to load, this supports XBMC's VFS |
Implemented in ActiveAE::CActiveAE.
|
pure virtual |
Creates and returns a new IAEStream in the format specified, this function should never fail.
The cleanup behaviour can be modified with the IAEStreamDeleter::setFinish method. Per default the behaviour is the same as calling FreeStream with true.
audioFormat | |
options | A bit field of stream options (see: enum AEStreamOptions) |
Implemented in ActiveAE::CActiveAE.
|
inlinevirtual |
Reimplemented in ActiveAE::CActiveAE.
|
pure virtual |
Resumes output and re-initializes sink.
Used to resume output from Suspend() state above
Implemented in ActiveAE::CActiveAE.
Set the mute state (does not affect volume level value)
enabled | The mute state |
Implemented in ActiveAE::CActiveAE.
|
pure virtual |
Sets the master volume level of the AudioEngine.
volume | The new volume level between 0.0 and 1.0 |
Implemented in ActiveAE::CActiveAE.
|
inlinevirtual |
Called when the application needs to terminate the engine.
Reimplemented in ActiveAE::CActiveAE.
|
protectedpure virtual |
Initializes the AudioEngine, called by CFactory when it is time to initialize the audio engine.
Do not call this directly, CApplication will call this when it is ready
Implemented in ActiveAE::CActiveAE.
Returns true if AudioEngine supports specified quality level.
Reimplemented in ActiveAE::CActiveAE.
|
inlinevirtual |
Returns true if the AudioEngine supports AE_FMT_RAW streams for use with formats such as IEC61937.
Reimplemented in ActiveAE::CActiveAE.
|
inlinevirtual |
Returns true if the AudioEngine supports drain mode which is not streaming silence when idle.
Reimplemented in ActiveAE::CActiveAE.
|
pure virtual |
Suspends output and de-initializes sink.
Used to avoid conflicts with external players or to reduce power consumption
Implemented in ActiveAE::CActiveAE.
|
inlinevirtual |
Reimplemented in ActiveAE::CActiveAE.
|
inlinevirtual |
Returns true if the AudioEngine is currently configured to extract the DTS Core from DTS-HD streams.
Reimplemented in ActiveAE::CActiveAE.
|
friend |
|
friend |
|
friend |