Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
CAudioSinkAE Class Reference

#include <AudioSinkAE.h>

Inheritance diagram for CAudioSinkAE:
IAEClockCallback

Public Member Functions

 CAudioSinkAE (CDVDClock *clock)
 
 ~CAudioSinkAE () override
 
void SetVolume (float fVolume)
 
void SetDynamicRangeCompression (long drc)
 
void Pause ()
 
void Resume ()
 
bool Create (const DVDAudioFrame &audioframe, AVCodecID codec, bool needresampler)
 
bool IsValidFormat (const DVDAudioFrame &audioframe)
 
void Destroy (bool finish)
 
unsigned int AddPackets (const DVDAudioFrame &audioframe)
 
double GetPlayingPts ()
 
double GetCacheTime ()
 
double GetCacheTotal ()
 
double GetMaxDelay ()
 
double GetDelay ()
 
double GetSyncError ()
 
void SetSyncErrorCorrection (double correction)
 
double GetResampleRatio ()
 Returns the resample ratio, or 0.0 if unknown/invalid.
 
void SetResampleMode (int mode)
 
void Flush ()
 
void Drain ()
 
void AbortAddPackets ()
 
double GetClock () override
 
double GetClockSpeed () override
 
CAEStreamInfo::DataType GetPassthroughStreamType (AVCodecID codecId, int samplerate, int profile)
 

Protected Attributes

IAE::StreamPtr m_pAudioStream
 
double m_playingPts
 
double m_timeOfPts
 
double m_syncError
 
unsigned int m_syncErrorTime
 
double m_resampleRatio = 0.0
 
CCriticalSection m_critSection
 
AEDataFormat m_dataFormat
 
unsigned int m_sampleRate
 
int m_iBitsPerSample
 
bool m_bPassthrough
 
CAEChannelInfo m_channelLayout
 
CAEStreamInfo::DataType m_dataType
 
bool m_bPaused
 
std::atomic_bool m_bAbort
 
CDVDClockm_pClock
 

Constructor & Destructor Documentation

◆ CAudioSinkAE()

CAudioSinkAE::CAudioSinkAE ( CDVDClock * clock)
explicit

◆ ~CAudioSinkAE()

CAudioSinkAE::~CAudioSinkAE ( )
override

Member Function Documentation

◆ AbortAddPackets()

void CAudioSinkAE::AbortAddPackets ( )

◆ AddPackets()

unsigned int CAudioSinkAE::AddPackets ( const DVDAudioFrame & audioframe)

◆ Create()

bool CAudioSinkAE::Create ( const DVDAudioFrame & audioframe,
AVCodecID codec,
bool needresampler )

◆ Destroy()

void CAudioSinkAE::Destroy ( bool finish)

◆ Drain()

void CAudioSinkAE::Drain ( )

◆ Flush()

void CAudioSinkAE::Flush ( )

◆ GetCacheTime()

double CAudioSinkAE::GetCacheTime ( )

◆ GetCacheTotal()

double CAudioSinkAE::GetCacheTotal ( )

◆ GetClock()

double CAudioSinkAE::GetClock ( )
overridevirtual

Implements IAEClockCallback.

◆ GetClockSpeed()

double CAudioSinkAE::GetClockSpeed ( )
overridevirtual

Reimplemented from IAEClockCallback.

◆ GetDelay()

double CAudioSinkAE::GetDelay ( )

◆ GetMaxDelay()

double CAudioSinkAE::GetMaxDelay ( )

◆ GetPassthroughStreamType()

CAEStreamInfo::DataType CAudioSinkAE::GetPassthroughStreamType ( AVCodecID codecId,
int samplerate,
int profile )

◆ GetPlayingPts()

double CAudioSinkAE::GetPlayingPts ( )

◆ GetResampleRatio()

double CAudioSinkAE::GetResampleRatio ( )

Returns the resample ratio, or 0.0 if unknown/invalid.

◆ GetSyncError()

double CAudioSinkAE::GetSyncError ( )

◆ IsValidFormat()

bool CAudioSinkAE::IsValidFormat ( const DVDAudioFrame & audioframe)

◆ Pause()

void CAudioSinkAE::Pause ( )

◆ Resume()

void CAudioSinkAE::Resume ( )

◆ SetDynamicRangeCompression()

void CAudioSinkAE::SetDynamicRangeCompression ( long drc)

◆ SetResampleMode()

void CAudioSinkAE::SetResampleMode ( int mode)

◆ SetSyncErrorCorrection()

void CAudioSinkAE::SetSyncErrorCorrection ( double correction)

◆ SetVolume()

void CAudioSinkAE::SetVolume ( float fVolume)

Member Data Documentation

◆ m_bAbort

std::atomic_bool CAudioSinkAE::m_bAbort
protected

◆ m_bPassthrough

bool CAudioSinkAE::m_bPassthrough
protected

◆ m_bPaused

bool CAudioSinkAE::m_bPaused
protected

◆ m_channelLayout

CAEChannelInfo CAudioSinkAE::m_channelLayout
protected

◆ m_critSection

CCriticalSection CAudioSinkAE::m_critSection
protected

◆ m_dataFormat

AEDataFormat CAudioSinkAE::m_dataFormat
protected

◆ m_dataType

CAEStreamInfo::DataType CAudioSinkAE::m_dataType
protected

◆ m_iBitsPerSample

int CAudioSinkAE::m_iBitsPerSample
protected

◆ m_pAudioStream

IAE::StreamPtr CAudioSinkAE::m_pAudioStream
protected

◆ m_pClock

CDVDClock* CAudioSinkAE::m_pClock
protected

◆ m_playingPts

double CAudioSinkAE::m_playingPts
protected

◆ m_resampleRatio

double CAudioSinkAE::m_resampleRatio = 0.0
protected

◆ m_sampleRate

unsigned int CAudioSinkAE::m_sampleRate
protected

◆ m_syncError

double CAudioSinkAE::m_syncError
protected

◆ m_syncErrorTime

unsigned int CAudioSinkAE::m_syncErrorTime
protected

◆ m_timeOfPts

double CAudioSinkAE::m_timeOfPts
protected

The documentation for this class was generated from the following files: