|
Kodi Docs 20.0
Kodi is an open source media player and entertainment hub.
|
#include <ActiveAE.h>
Classes | |
| struct | SoundState |
Public Member Functions | |
| CActiveAE () | |
| ~CActiveAE () override | |
| void | Start () override |
| Initializes the AudioEngine, called by CFactory when it is time to initialize the audio engine. More... | |
| void | Shutdown () override |
| Called when the application needs to terminate the engine. More... | |
| bool | Suspend () override |
| Suspends output and de-initializes sink. More... | |
| bool | Resume () override |
| Resumes output and re-initializes sink. More... | |
| bool | IsSuspended () override |
| Get the current Suspend() state. More... | |
| void | OnSettingsChange () |
| float | GetVolume () override |
| Returns the current master volume level of the AudioEngine. More... | |
| void | SetVolume (const float volume) override |
| Sets the master volume level of the AudioEngine. More... | |
| void | SetMute (const bool enabled) override |
| Set the mute state (does not affect volume level value) More... | |
| bool | IsMuted () override |
| Get the current mute state. More... | |
| IAE::StreamPtr | MakeStream (AEAudioFormat &audioFormat, unsigned int options=0, IAEClockCallback *clock=NULL) override |
| Creates and returns a new IAEStream in the format specified, this function should never fail. More... | |
| IAE::SoundPtr | MakeSound (const std::string &file) override |
| void | EnumerateOutputDevices (AEDeviceList &devices, bool passthrough) override |
| Enumerate the supported audio output devices. More... | |
| bool | SupportsRaw (AEAudioFormat &format) override |
| Returns true if the AudioEngine supports AE_FMT_RAW streams for use with formats such as IEC61937. More... | |
| bool | SupportsSilenceTimeout () override |
| Returns true if the AudioEngine supports drain mode which is not streaming silence when idle. More... | |
| bool | UsesDtsCoreFallback () override |
| Returns true if the AudioEngine is currently configured to extract the DTS Core from DTS-HD streams. More... | |
| bool | HasStereoAudioChannelCount () override |
| Returns true if the AudioEngine is currently configured for stereo audio. More... | |
| bool | HasHDAudioChannelCount () override |
| Returns true if the AudioEngine is currently configured for HD audio (more than 5.1) More... | |
| bool | SupportsQualityLevel (enum AEQuality level) override |
| Returns true if AudioEngine supports specified quality level. More... | |
| bool | IsSettingVisible (const std::string &settingId) override |
| AE decides whether this settings should be displayed. More... | |
| void | KeepConfiguration (unsigned int millis) override |
| Instruct AE to keep configuration for a specified time. More... | |
| void | DeviceChange () override |
| Instruct AE to re-initialize, e.g. after ELD change event. More... | |
| void | DeviceCountChange (const std::string &driver) override |
| Instruct AE to re-initialize, e.g. after ELD change event. More... | |
| bool | GetCurrentSinkFormat (AEAudioFormat &SinkFormat) override |
| Get the current sink data format. More... | |
| void | RegisterAudioCallback (IAudioCallback *pCallback) override |
| void | UnregisterAudioCallback (IAudioCallback *pCallback) override |
| void | OnLostDisplay () override |
| void | OnResetDisplay () override |
| void | OnAppFocusChange (bool focus) override |
Protected Types | |
| enum | { MODE_RAW , MODE_TRANSCODE , MODE_PCM } |
Static Protected Member Functions | |
| static uint8_t ** | AllocSoundSample (SampleConfig &config, int &samples, int &bytes_per_sample, int &planes, int &linesize) |
| static void | FreeSoundSample (uint8_t **data) |
Friends | |
| class | CActiveAESound |
| class | CActiveAEStream |
| class | CSoundPacket |
| class | CActiveAEBufferPoolResample |
Additional Inherited Members | |
Public Types inherited from IAE | |
| using | StreamPtr = std::unique_ptr< IAEStream, IAEStreamDeleter > |
| using | SoundPtr = std::unique_ptr< IAESound, IAESoundDeleter > |
| CActiveAE::CActiveAE | ( | ) |
|
override |
|
staticprotected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
overridevirtual |
|
overridevirtual |
|
protected |
|
protected |
|
protected |
|
protected |
|
overridevirtual |
Enumerate the supported audio output devices.
| devices | The device list to append supported devices to |
| passthrough | True if only passthrough devices are wanted |
Implements IAE.
|
protected |
|
protected |
|
inlineprotected |
|
inlineprotected |
|
overridevirtual |
Get the current sink data format.
| Current | sink data format. For more details see AEAudioFormat. |
Reimplemented from IAE.
|
inlineprotected |
|
protected |
|
inlineprotected |
|
inlineprotected |
|
overridevirtual |
Returns the current master volume level of the AudioEngine.
Implements IAE.
|
overridevirtual |
Returns true if the AudioEngine is currently configured for HD audio (more than 5.1)
Reimplemented from IAE.
|
overridevirtual |
Returns true if the AudioEngine is currently configured for stereo audio.
Reimplemented from IAE.
|
protected |
|
protected |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
|
protected |
|
overridevirtual |
|
overridevirtual |
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) |
Implements IAE.
|
protected |
|
protected |
|
protected |
Reimplemented from IDispResource.
|
overridevirtual |
Reimplemented from IDispResource.
|
overridevirtual |
Reimplemented from IDispResource.
| void CActiveAE::OnSettingsChange | ( | ) |
|
protected |
|
protected |
|
overridevirtual |
Reimplemented from IAE.
|
protected |
To become center clear on position test ??????
|
protected |
resample sounds to destination format for mixing destination format is either format of stream or default sink format when no stream is playing
|
overridevirtual |
Set the mute state (does not affect volume level value)
| enabled | The mute state |
Implements IAE.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
overridevirtual |
Sets the master volume level of the AudioEngine.
| volume | The new volume level between 0.0 and 1.0 |
Implements IAE.
|
protected |
|
overridevirtual |
Called when the application needs to terminate the engine.
Reimplemented from IAE.
|
protected |
|
overridevirtual |
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
Implements IAE.
|
protected |
Returns true if AudioEngine supports specified quality level.
Reimplemented from IAE.
|
overridevirtual |
Returns true if the AudioEngine supports AE_FMT_RAW streams for use with formats such as IEC61937.
Reimplemented from IAE.
|
overridevirtual |
Returns true if the AudioEngine supports drain mode which is not streaming silence when idle.
Reimplemented from IAE.
|
overridevirtual |
Suspends output and de-initializes sink.
Used to avoid conflicts with external players or to reduce power consumption
Implements IAE.
|
protected |
|
protected |
|
overridevirtual |
Reimplemented from IAE.
|
overridevirtual |
Returns true if the AudioEngine is currently configured to extract the DTS Core from DTS-HD streams.
Reimplemented from IAE.
|
friend |
|
friend |
|
friend |
|
friend |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
| enum { ... } ActiveAE::CActiveAE::m_mode |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |