Kodi Documentation 18.0
Kodi is an open source media player and entertainment hub.
OMXPlayerAudio Class Reference

#include <OMXPlayerAudio.h>

Inheritance diagram for OMXPlayerAudio:
CThread IDVDStreamPlayerAudio IDVDStreamPlayer

Public Member Functions

 OMXPlayerAudio (OMXClock *av_clock, CDVDMessageQueue &parent, CProcessInfo &processInfo)
 
 ~OMXPlayerAudio ()
 
bool OpenStream (CDVDStreamInfo hints) override
 
void SendMessage (CDVDMsg *pMsg, int priority=0) override
 
void FlushMessages () override
 
bool AcceptsData () const override
 
bool HasData () const override
 
bool IsInited () const override
 
int GetLevel () const override
 
bool IsStalled () const override
 
bool IsEOS () override
 
void CloseStream (bool bWaitForBuffers) override
 
bool CodecChange ()
 
bool Decode (DemuxPacket *pkt, bool bDropPacket, bool bTrickPlay)
 
void Flush (bool sync) override
 
AEAudioFormat GetDataFormat (CDVDStreamInfo hints)
 
bool IsPassthrough () const override
 
bool OpenDecoder ()
 
void CloseDecoder ()
 
double GetCurrentPts () override
 
void SubmitEOS ()
 
void SetVolume (float fVolume) override
 
void SetMute (bool bOnOff) override
 
void SetDynamicRangeCompression (long drc) override
 
float GetDynamicRangeAmplification () const override
 
void SetSpeed (int iSpeed) override
 
int GetAudioChannels () override
 
std::string GetPlayerInfo () override
 
- Public Member Functions inherited from CThread
 CThread (IRunnable *pRunnable, const char *ThreadName)
 
virtual ~CThread ()
 
void Create (bool bAutoDelete=false, unsigned stacksize=0)
 
void Sleep (unsigned int milliseconds)
 
int GetSchedRRPriority (void)
 
bool SetPrioritySched_RR (int iPriority)
 
bool IsAutoDelete () const
 
virtual void StopThread (bool bWait=true)
 
bool IsRunning () const
 
bool IsCurrentThread () const
 
int GetMinPriority (void)
 
int GetMaxPriority (void)
 
int GetNormalPriority (void)
 
int GetPriority (void)
 
bool SetPriority (const int iPriority)
 
bool WaitForThreadExit (unsigned int milliseconds)
 
float GetRelativeUsage ()
 
int64_t GetAbsoluteUsage ()
 
virtual void OnException ()
 
- Public Member Functions inherited from IDVDStreamPlayerAudio
 IDVDStreamPlayerAudio (CProcessInfo &processInfo)
 
 ~IDVDStreamPlayerAudio () override=default
 
- Public Member Functions inherited from IDVDStreamPlayer
 IDVDStreamPlayer (CProcessInfo &processInfo)
 
virtual ~IDVDStreamPlayer ()=default
 

Protected Member Functions

virtual void OnStartup ()
 
virtual void OnExit ()
 
virtual void Process ()
 
void OpenStream (CDVDStreamInfo &hints, COMXAudioCodecOMX *codec)
 
- Protected Member Functions inherited from CThread
 CThread (const char *ThreadName)
 
WaitResponse AbortableWait (CEvent &event, int timeoutMillis=-1)
 

Protected Attributes

CDVDMessageQueue m_messageQueue
 
CDVDMessageQueuem_messageParent
 
CDVDStreamInfo m_hints_current
 
CDVDStreamInfo m_hints
 
OMXClockm_av_clock
 
COMXAudio m_omxAudio
 
std::string m_codec_name
 
bool m_passthrough
 
AEAudioFormat m_format
 
COMXAudioCodecOMXm_pAudioCodec
 
int m_speed
 
bool m_silence
 
double m_audioClock
 
bool m_stalled
 
IDVDStreamPlayer::ESyncState m_syncState
 
BitstreamStats m_audioStats
 
bool m_buffer_empty
 
bool m_flush
 
bool m_DecoderOpen
 
bool m_bad_state
 
- Protected Attributes inherited from CThread
std::atomic< bool > m_bStop
 
- Protected Attributes inherited from IDVDStreamPlayer
CProcessInfom_processInfo
 

Additional Inherited Members

- Public Types inherited from IDVDStreamPlayer
enum  ESyncState { SYNC_STARTING , SYNC_WAITSYNC , SYNC_INSYNC }
 
- Static Public Member Functions inherited from CThread
static bool IsCurrentThread (const ThreadIdentifier tid)
 
static ThreadIdentifier GetCurrentThreadId ()
 
static ThreadIdentifier GetDisplayThreadId (const ThreadIdentifier tid)
 
static CThreadGetCurrentThread ()
 
- Protected Types inherited from CThread
enum  WaitResponse { WAIT_INTERRUPTED = -1 , WAIT_SIGNALED = 0 , WAIT_TIMEDOUT = 1 }
 

Constructor & Destructor Documentation

◆ OMXPlayerAudio()

OMXPlayerAudio::OMXPlayerAudio ( OMXClock av_clock,
CDVDMessageQueue parent,
CProcessInfo processInfo 
)

◆ ~OMXPlayerAudio()

OMXPlayerAudio::~OMXPlayerAudio ( )

Member Function Documentation

◆ AcceptsData()

bool OMXPlayerAudio::AcceptsData ( ) const
inlineoverridevirtual

Implements IDVDStreamPlayerAudio.

◆ CloseDecoder()

void OMXPlayerAudio::CloseDecoder ( )

◆ CloseStream()

void OMXPlayerAudio::CloseStream ( bool  bWaitForBuffers)
overridevirtual

Implements IDVDStreamPlayerAudio.

◆ CodecChange()

bool OMXPlayerAudio::CodecChange ( )

◆ Decode()

bool OMXPlayerAudio::Decode ( DemuxPacket pkt,
bool  bDropPacket,
bool  bTrickPlay 
)

◆ Flush()

void OMXPlayerAudio::Flush ( bool  sync)
overridevirtual

Implements IDVDStreamPlayerAudio.

◆ FlushMessages()

void OMXPlayerAudio::FlushMessages ( )
inlineoverridevirtual

Implements IDVDStreamPlayer.

◆ GetAudioChannels()

int OMXPlayerAudio::GetAudioChannels ( )
overridevirtual

Implements IDVDStreamPlayerAudio.

◆ GetCurrentPts()

double OMXPlayerAudio::GetCurrentPts ( )
inlineoverridevirtual

Implements IDVDStreamPlayerAudio.

◆ GetDataFormat()

AEAudioFormat OMXPlayerAudio::GetDataFormat ( CDVDStreamInfo  hints)

◆ GetDynamicRangeAmplification()

float OMXPlayerAudio::GetDynamicRangeAmplification ( ) const
inlineoverridevirtual

Implements IDVDStreamPlayerAudio.

◆ GetLevel()

int OMXPlayerAudio::GetLevel ( ) const
inlineoverridevirtual

Implements IDVDStreamPlayerAudio.

◆ GetPlayerInfo()

std::string OMXPlayerAudio::GetPlayerInfo ( )
overridevirtual

Implements IDVDStreamPlayerAudio.

◆ HasData()

bool OMXPlayerAudio::HasData ( ) const
inlineoverridevirtual

Implements IDVDStreamPlayerAudio.

◆ IsEOS()

bool OMXPlayerAudio::IsEOS ( )
overridevirtual

Reimplemented from IDVDStreamPlayerAudio.

◆ IsInited()

bool OMXPlayerAudio::IsInited ( ) const
inlineoverridevirtual

Implements IDVDStreamPlayerAudio.

◆ IsPassthrough()

bool OMXPlayerAudio::IsPassthrough ( ) const
overridevirtual

Implements IDVDStreamPlayerAudio.

◆ IsStalled()

bool OMXPlayerAudio::IsStalled ( ) const
inlineoverridevirtual

Implements IDVDStreamPlayerAudio.

◆ OnExit()

void OMXPlayerAudio::OnExit ( )
protectedvirtual

Reimplemented from CThread.

◆ OnStartup()

void OMXPlayerAudio::OnStartup ( )
protectedvirtual

Reimplemented from CThread.

◆ OpenDecoder()

bool OMXPlayerAudio::OpenDecoder ( )

◆ OpenStream() [1/2]

void OMXPlayerAudio::OpenStream ( CDVDStreamInfo hints,
COMXAudioCodecOMX codec 
)
protected

◆ OpenStream() [2/2]

bool OMXPlayerAudio::OpenStream ( CDVDStreamInfo  hints)
overridevirtual

Implements IDVDStreamPlayerAudio.

◆ Process()

void OMXPlayerAudio::Process ( void  )
protectedvirtual

Reimplemented from CThread.

◆ SendMessage()

void OMXPlayerAudio::SendMessage ( CDVDMsg pMsg,
int  priority = 0 
)
inlineoverridevirtual

Implements IDVDStreamPlayerAudio.

◆ SetDynamicRangeCompression()

void OMXPlayerAudio::SetDynamicRangeCompression ( long  drc)
inlineoverridevirtual

Implements IDVDStreamPlayerAudio.

◆ SetMute()

void OMXPlayerAudio::SetMute ( bool  bOnOff)
inlineoverridevirtual

Reimplemented from IDVDStreamPlayerAudio.

◆ SetSpeed()

void OMXPlayerAudio::SetSpeed ( int  iSpeed)
overridevirtual

Implements IDVDStreamPlayerAudio.

◆ SetVolume()

void OMXPlayerAudio::SetVolume ( float  fVolume)
inlineoverridevirtual

Reimplemented from IDVDStreamPlayerAudio.

◆ SubmitEOS()

void OMXPlayerAudio::SubmitEOS ( )

Member Data Documentation

◆ m_audioClock

double OMXPlayerAudio::m_audioClock
protected

◆ m_audioStats

BitstreamStats OMXPlayerAudio::m_audioStats
protected

◆ m_av_clock

OMXClock* OMXPlayerAudio::m_av_clock
protected

◆ m_bad_state

bool OMXPlayerAudio::m_bad_state
protected

◆ m_buffer_empty

bool OMXPlayerAudio::m_buffer_empty
protected

◆ m_codec_name

std::string OMXPlayerAudio::m_codec_name
protected

◆ m_DecoderOpen

bool OMXPlayerAudio::m_DecoderOpen
protected

◆ m_flush

bool OMXPlayerAudio::m_flush
protected

◆ m_format

AEAudioFormat OMXPlayerAudio::m_format
protected

◆ m_hints

CDVDStreamInfo OMXPlayerAudio::m_hints
protected

◆ m_hints_current

CDVDStreamInfo OMXPlayerAudio::m_hints_current
protected

◆ m_messageParent

CDVDMessageQueue& OMXPlayerAudio::m_messageParent
protected

◆ m_messageQueue

CDVDMessageQueue OMXPlayerAudio::m_messageQueue
protected

◆ m_omxAudio

COMXAudio OMXPlayerAudio::m_omxAudio
protected

◆ m_passthrough

bool OMXPlayerAudio::m_passthrough
protected

◆ m_pAudioCodec

COMXAudioCodecOMX* OMXPlayerAudio::m_pAudioCodec
protected

◆ m_silence

bool OMXPlayerAudio::m_silence
protected

◆ m_speed

int OMXPlayerAudio::m_speed
protected

◆ m_stalled

bool OMXPlayerAudio::m_stalled
protected

◆ m_syncState

IDVDStreamPlayer::ESyncState OMXPlayerAudio::m_syncState
protected

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