#include <ActiveAE.h>
|
void | PlaySound (CActiveAESound *sound) |
|
void | GetDelay (AEDelayStatus &status, CActiveAEStream *stream) |
|
void | GetSyncInfo (CAESyncInfo &info, CActiveAEStream *stream) |
|
float | GetCacheTime (CActiveAEStream *stream) |
|
float | GetCacheTotal () |
|
float | GetMaxDelay () |
|
void | FlushStream (CActiveAEStream *stream) |
|
void | PauseStream (CActiveAEStream *stream, bool pause) |
|
void | StopSound (CActiveAESound *sound) |
|
void | SetStreamAmplification (CActiveAEStream *stream, float amplify) |
|
void | SetStreamReplaygain (CActiveAEStream *stream, float rgain) |
|
void | SetStreamVolume (CActiveAEStream *stream, float volume) |
|
void | SetStreamResampleRatio (CActiveAEStream *stream, double ratio) |
|
void | SetStreamResampleMode (CActiveAEStream *stream, int mode) |
|
void | SetStreamFFmpegInfo (CActiveAEStream *stream, int profile, enum AVMatrixEncoding matrix_encoding, enum AVAudioServiceType audio_service_type) |
|
void | SetStreamFade (CActiveAEStream *stream, float from, float target, unsigned int millis) |
|
void | Process () override |
|
void | StateMachine (int signal, Protocol *port, Message *msg) |
|
bool | InitSink () |
|
void | DrainSink () |
|
void | UnconfigureSink () |
|
void | Dispose () |
|
void | LoadSettings () |
|
bool | NeedReconfigureBuffers () |
|
bool | NeedReconfigureSink () |
|
void | ApplySettingsToFormat (AEAudioFormat &format, AudioSettings &settings, int *mode=NULL) |
|
void | Configure (AEAudioFormat *desiredFmt=NULL) |
|
AEAudioFormat | GetInputFormat (AEAudioFormat *desiredFmt=NULL) |
|
CActiveAEStream * | CreateStream (MsgStreamNew *streamMsg) |
|
void | DiscardStream (CActiveAEStream *stream) |
|
void | SFlushStream (CActiveAEStream *stream) |
|
void | FlushEngine () |
|
void | ClearDiscardedBuffers () |
|
void | SStopSound (CActiveAESound *sound) |
|
void | DiscardSound (CActiveAESound *sound) |
|
void | ChangeResamplers () |
|
bool | RunStages () |
|
bool | HasWork () |
|
CSampleBuffer * | SyncStream (CActiveAEStream *stream) |
|
void | ResampleSounds () |
|
bool | ResampleSound (CActiveAESound *sound) |
|
void | MixSounds (CSoundPacket &dstSample) |
|
void | Deamplify (CSoundPacket &dstSample) |
|
bool | CompareFormat (AEAudioFormat &lhs, AEAudioFormat &rhs) |
|
| IAE ()=default |
|
virtual | ~IAE ()=default |
|
§ anonymous enum
Enumerator |
---|
MODE_RAW | |
MODE_TRANSCODE | |
MODE_PCM | |
§ CActiveAE()
§ ~CActiveAE()
CActiveAE::~CActiveAE |
( |
| ) |
|
|
override |
§ AllocSoundSample()
uint8_t ** CActiveAE::AllocSoundSample |
( |
SampleConfig & |
config, |
|
|
int & |
samples, |
|
|
int & |
bytes_per_sample, |
|
|
int & |
planes, |
|
|
int & |
linesize |
|
) |
| |
|
staticprotected |
§ ApplySettingsToFormat()
§ ChangeResamplers()
void CActiveAE::ChangeResamplers |
( |
| ) |
|
|
protected |
§ ClearDiscardedBuffers()
void CActiveAE::ClearDiscardedBuffers |
( |
| ) |
|
|
protected |
§ CompareFormat()
§ Configure()
§ CreateStream()
§ Deamplify()
§ DeviceChange()
void CActiveAE::DeviceChange |
( |
| ) |
|
|
overridevirtual |
Instruct AE to re-initialize, e.g. after ELD change event
Reimplemented from IAE.
§ DiscardSound()
§ DiscardStream()
§ Dispose()
void CActiveAE::Dispose |
( |
| ) |
|
|
protected |
§ DrainSink()
void CActiveAE::DrainSink |
( |
| ) |
|
|
protected |
§ EnumerateOutputDevices()
void CActiveAE::EnumerateOutputDevices |
( |
AEDeviceList & |
devices, |
|
|
bool |
passthrough |
|
) |
| |
|
overridevirtual |
Enumerate the supported audio output devices
- Parameters
-
devices | The device list to append supported devices to |
passthrough | True if only passthrough devices are wanted |
Implements IAE.
§ FlushEngine()
void CActiveAE::FlushEngine |
( |
| ) |
|
|
protected |
§ FlushStream()
§ FreeSound()
Free the supplied IAESound object
- Parameters
-
Implements IAE.
§ FreeSoundSample()
§ FreeStream()
bool CActiveAE::FreeStream |
( |
IAEStream * |
stream, |
|
|
bool |
finish |
|
) |
| |
|
overridevirtual |
This method will remove the specifyed stream from the engine. For OSX/IOS this is essential to reconfigure the audio output.
- Parameters
-
stream | The stream to be altered |
finish | if true AE will switch back to gui sound mode (if this is last stream) |
- Returns
- NULL
Implements IAE.
§ GetCacheTime()
§ GetCacheTotal()
float ActiveAE::CActiveAE::GetCacheTotal |
( |
| ) |
|
|
inlineprotected |
§ GetCurrentSinkFormat()
bool CActiveAE::GetCurrentSinkFormat |
( |
AEAudioFormat & |
SinkFormat | ) |
|
|
overridevirtual |
Get the current sink data format
- Parameters
-
- Returns
- Returns true on success, else false.
Reimplemented from IAE.
§ GetDelay()
§ GetInputFormat()
§ GetMaxDelay()
float ActiveAE::CActiveAE::GetMaxDelay |
( |
| ) |
|
|
inlineprotected |
§ GetSyncInfo()
§ GetVolume()
float CActiveAE::GetVolume |
( |
| ) |
|
|
overridevirtual |
Returns the current master volume level of the AudioEngine
- Returns
- The volume level between 0.0 and 1.0
Implements IAE.
§ HasHDAudioChannelCount()
bool CActiveAE::HasHDAudioChannelCount |
( |
| ) |
|
|
overridevirtual |
Returns true if the AudioEngine is currently configured for HD audio (more than 5.1)
- Returns
- true if the AudioEngine is currently configured for HD audio (more than 5.1)
Reimplemented from IAE.
§ HasStereoAudioChannelCount()
bool CActiveAE::HasStereoAudioChannelCount |
( |
| ) |
|
|
overridevirtual |
Returns true if the AudioEngine is currently configured for stereo audio
- Returns
- true if the AudioEngine is currently configured for stereo audio
Reimplemented from IAE.
§ HasWork()
bool CActiveAE::HasWork |
( |
| ) |
|
|
protected |
§ InitSink()
bool CActiveAE::InitSink |
( |
| ) |
|
|
protected |
§ IsMuted()
bool CActiveAE::IsMuted |
( |
| ) |
|
|
overridevirtual |
Get the current mute state
- Returns
- The current mute state
Implements IAE.
§ IsSettingVisible()
bool CActiveAE::IsSettingVisible |
( |
const std::string & |
settingId | ) |
|
|
overridevirtual |
AE decides whether this settings should be displayed
- Returns
- true if AudioEngine wants to display this setting
Reimplemented from IAE.
§ IsSuspended()
bool CActiveAE::IsSuspended |
( |
| ) |
|
|
overridevirtual |
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
- Returns
- True if processing suspended
Reimplemented from IAE.
§ KeepConfiguration()
void CActiveAE::KeepConfiguration |
( |
unsigned int |
millis | ) |
|
|
overridevirtual |
Instruct AE to keep configuration for a specified time
- Parameters
-
millis | time for which old configuration should be kept |
Reimplemented from IAE.
§ LoadSettings()
void CActiveAE::LoadSettings |
( |
| ) |
|
|
protected |
§ MakeSound()
IAESound * CActiveAE::MakeSound |
( |
const std::string & |
file | ) |
|
|
overridevirtual |
load sound from an audio file and store original format register the sound in ActiveAE later when the engine is idle it will convert the sound to sink format
Implements IAE.
§ MakeStream()
Creates and returns a new IAEStream in the format specified, this function should never fail
- Parameters
-
audioFormat | |
options | A bit field of stream options (see: enum AEStreamOptions) |
- Returns
- a new IAEStream that will accept data in the requested format
- Todo:
- pass number of samples in audio packet
Implements IAE.
§ MixSounds()
§ NeedReconfigureBuffers()
bool CActiveAE::NeedReconfigureBuffers |
( |
| ) |
|
|
protected |
§ NeedReconfigureSink()
bool CActiveAE::NeedReconfigureSink |
( |
| ) |
|
|
protected |
§ OnAppFocusChange()
void CActiveAE::OnAppFocusChange |
( |
bool |
focus | ) |
|
|
overridevirtual |
§ OnLostDisplay()
void CActiveAE::OnLostDisplay |
( |
| ) |
|
|
overridevirtual |
§ OnResetDisplay()
void CActiveAE::OnResetDisplay |
( |
| ) |
|
|
overridevirtual |
§ OnSettingsChange()
void CActiveAE::OnSettingsChange |
( |
| ) |
|
§ PauseStream()
- Todo:
- pause sink, needs api change
§ PlaySound()
§ Process()
§ RegisterAudioCallback()
§ ResampleSound()
To become center clear on position test ??????
§ ResampleSounds()
void CActiveAE::ResampleSounds |
( |
| ) |
|
|
protected |
resample sounds to destination format for mixing destination format is either format of stream or default sink format when no stream is playing
§ Resume()
bool CActiveAE::Resume |
( |
| ) |
|
|
overridevirtual |
Resumes output and re-initializes sink Used to resume output from Suspend() state above
- Returns
- True if successful
Implements IAE.
§ RunStages()
bool CActiveAE::RunStages |
( |
| ) |
|
|
protected |
- Todo:
- find better solution for this gapless bites audiophile
§ SetMute()
void CActiveAE::SetMute |
( |
const bool |
enabled | ) |
|
|
overridevirtual |
Set the mute state (does not affect volume level value)
- Parameters
-
Implements IAE.
§ SetStreamAmplification()
§ SetStreamFade()
void CActiveAE::SetStreamFade |
( |
CActiveAEStream * |
stream, |
|
|
float |
from, |
|
|
float |
target, |
|
|
unsigned int |
millis |
|
) |
| |
|
protected |
§ SetStreamFFmpegInfo()
void CActiveAE::SetStreamFFmpegInfo |
( |
CActiveAEStream * |
stream, |
|
|
int |
profile, |
|
|
enum AVMatrixEncoding |
matrix_encoding, |
|
|
enum AVAudioServiceType |
audio_service_type |
|
) |
| |
|
protected |
§ SetStreamReplaygain()
§ SetStreamResampleMode()
§ SetStreamResampleRatio()
§ SetStreamVolume()
§ SetVolume()
void CActiveAE::SetVolume |
( |
const float |
volume | ) |
|
|
overridevirtual |
Sets the master volume level of the AudioEngine
- Parameters
-
volume | The new volume level between 0.0 and 1.0 |
Implements IAE.
§ SFlushStream()
§ Shutdown()
void CActiveAE::Shutdown |
( |
| ) |
|
|
overridevirtual |
Called when the application needs to terminate the engine
Reimplemented from IAE.
§ SStopSound()
§ Start()
void CActiveAE::Start |
( |
| ) |
|
|
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.
§ StateMachine()
§ StopSound()
§ SupportsQualityLevel()
bool CActiveAE::SupportsQualityLevel |
( |
enum AEQuality |
level | ) |
|
|
overridevirtual |
Returns true if AudioEngine supports specified quality level
- Returns
- true if specified quality level is supported, otherwise false
Reimplemented from IAE.
§ SupportsRaw()
Returns true if the AudioEngine supports AE_FMT_RAW streams for use with formats such as IEC61937
- See also
- CAEPackIEC61937::CAEPackIEC61937()
- Returns
- true if the AudioEngine is capable of RAW output
Reimplemented from IAE.
§ SupportsSilenceTimeout()
bool CActiveAE::SupportsSilenceTimeout |
( |
| ) |
|
|
overridevirtual |
Returns true if the AudioEngine supports drain mode which is not streaming silence when idle
- Returns
- true if the AudioEngine is capable of drain mode
Reimplemented from IAE.
§ Suspend()
bool CActiveAE::Suspend |
( |
| ) |
|
|
overridevirtual |
Suspends output and de-initializes sink Used to avoid conflicts with external players or to reduce power consumption
- Returns
- True if successful
Implements IAE.
§ SyncStream()
§ UnconfigureSink()
void CActiveAE::UnconfigureSink |
( |
| ) |
|
|
protected |
§ UnregisterAudioCallback()
§ CActiveAEBufferPoolResample
§ CActiveAESound
§ CActiveAEStream
§ CSoundPacket
§ m_aeGUISoundForce
bool ActiveAE::CActiveAE::m_aeGUISoundForce |
|
protected |
§ m_aeMuted
bool ActiveAE::CActiveAE::m_aeMuted |
|
protected |
§ m_aeVolume
float ActiveAE::CActiveAE::m_aeVolume |
|
protected |
§ m_audioCallback
§ m_bStateMachineSelfTrigger
bool ActiveAE::CActiveAE::m_bStateMachineSelfTrigger |
|
protected |
§ m_controlPort
§ m_currDevice
std::string ActiveAE::CActiveAE::m_currDevice |
|
protected |
§ m_dataPort
§ m_discardBufferPools
§ m_encoder
§ m_encoderBuffers
§ m_encoderFormat
§ m_extDeferData
bool ActiveAE::CActiveAE::m_extDeferData |
|
protected |
§ m_extDrain
bool ActiveAE::CActiveAE::m_extDrain |
|
protected |
§ m_extDrainTimer
§ m_extError
bool ActiveAE::CActiveAE::m_extError |
|
protected |
§ m_extKeepConfig
unsigned int ActiveAE::CActiveAE::m_extKeepConfig |
|
protected |
§ m_extLastDeviceChange
std::queue<time_t> ActiveAE::CActiveAE::m_extLastDeviceChange |
|
protected |
§ m_extTimeout
int ActiveAE::CActiveAE::m_extTimeout |
|
protected |
§ m_inMsgEvent
CEvent ActiveAE::CActiveAE::m_inMsgEvent |
|
protected |
§ m_inputFormat
§ m_internalFormat
§ m_isWinSysReg
bool ActiveAE::CActiveAE::m_isWinSysReg = false |
|
protected |
§ m_mode
enum { ... } ActiveAE::CActiveAE::m_mode |
§ m_muted
bool ActiveAE::CActiveAE::m_muted |
|
protected |
§ m_outMsgEvent
CEvent ActiveAE::CActiveAE::m_outMsgEvent |
|
protected |
§ m_settings
§ m_settingsHandler
§ m_silenceBuffers
§ m_sink
§ m_sinkBuffers
§ m_sinkFormat
§ m_sinkHasVolume
bool ActiveAE::CActiveAE::m_sinkHasVolume |
|
protected |
§ m_sinkRequestFormat
§ m_sounds
§ m_sounds_playing
std::list<SoundState> ActiveAE::CActiveAE::m_sounds_playing |
|
protected |
§ m_state
int ActiveAE::CActiveAE::m_state |
|
protected |
§ m_stats
§ m_streamIdGen
unsigned int ActiveAE::CActiveAE::m_streamIdGen |
|
protected |
§ m_streams
§ m_vizBuffers
§ m_vizBuffersInput
§ m_vizInitialized
bool ActiveAE::CActiveAE::m_vizInitialized |
|
protected |
§ m_vizLock
§ m_volume
float ActiveAE::CActiveAE::m_volume |
|
protected |
§ m_volumeScaled
float ActiveAE::CActiveAE::m_volumeScaled |
|
protected |
The documentation for this class was generated from the following files: