11 #include "cores/AudioEngine/Interfaces/AE.h" 12 #include "cores/AudioEngine/Interfaces/AEStream.h" 13 #include "cores/AudioEngine/Utils/AEChannelInfo.h" 14 #include "threads/CriticalSection.h" 19 #include "PlatformDefs.h" 22 #include <libavcodec/avcodec.h> 35 void SetVolume(
float fVolume);
36 void SetDynamicRangeCompression(
long drc);
39 bool Create(
const DVDAudioFrame &audioframe, AVCodecID codec,
bool needresampler);
41 void Destroy(
bool finish);
43 double GetPlayingPts();
44 double GetCacheTime();
45 double GetCacheTotal();
48 double GetSyncError();
49 void SetSyncErrorCorrection(
double correction);
56 void SetResampleMode(
int mode);
59 void AbortAddPackets();
61 double GetClock()
override;
62 double GetClockSpeed()
override;
64 CAEStreamInfo::DataType GetPassthroughStreamType(AVCodecID codecId,
int samplerate,
int profile);
67 IAE::StreamPtr m_pAudioStream;
71 unsigned int m_syncErrorTime;
72 double m_resampleRatio = 0.0;
73 CCriticalSection m_critSection;
75 AEDataFormat m_dataFormat;
76 unsigned int m_sampleRate;
80 CAEStreamInfo::DataType m_dataType;
83 std::atomic_bool m_bAbort;
Callback interface for VideoPlayer clock needed by AE for sync.
Definition: AEStream.h:23
Definition: AudioSinkAE.h:29
Definition: DVDAudioCodec.h:27
double GetResampleRatio()
Returns the resample ratio, or 0.0 if unknown/invalid.
Definition: AudioSinkAE.cpp:305
Definition: DVDClock.h:18
Definition: AEChannelInfo.h:19