Kodi Documentation  18.0
Kodi is an open source media player and entertainment hub.
ActiveAE::CActiveAESound Class Reference

#include <ActiveAESound.h>

Inheritance diagram for ActiveAE::CActiveAESound:
IAESound

Public Member Functions

 CActiveAESound (const std::string &filename, CActiveAE *ae)
 
 ~CActiveAESound () override
 
void Play () override
 
void Stop () override
 
bool IsPlaying () override
 
void SetChannel (AEChannel channel) override
 
AEChannel GetChannel () override
 
void SetVolume (float volume) override
 
float GetVolume () override
 
uint8_t ** InitSound (bool orig, SampleConfig config, int nb_samples)
 
bool StoreSound (bool orig, uint8_t **buffer, int samples, int linesize)
 
CSoundPacketGetSound (bool orig)
 
bool IsConverted ()
 
void SetConverted (bool state)
 
bool Prepare ()
 
void Finish ()
 
int GetChunkSize ()
 
int GetFileSize ()
 
bool IsSeekPossible ()
 

Static Public Member Functions

static int Read (void *h, uint8_t *buf, int size)
 
static int64_t Seek (void *h, int64_t pos, int whence)
 

Protected Attributes

CActiveAEm_activeAE
 
std::string m_filename
 
XFILE::CFilem_pFile
 
bool m_isSeekPossible
 
int m_fileSize
 
float m_volume
 
AEChannel m_channel
 
CSoundPacketm_orig_sound
 
CSoundPacketm_dst_sound
 
bool m_isConverted
 

Additional Inherited Members

- Protected Member Functions inherited from IAESound
 IAESound (const std::string &filename)
 
virtual ~IAESound ()=default
 

Constructor & Destructor Documentation

§ CActiveAESound()

CActiveAESound::CActiveAESound ( const std::string &  filename,
CActiveAE ae 
)

§ ~CActiveAESound()

CActiveAESound::~CActiveAESound ( )
override

Member Function Documentation

§ Finish()

void CActiveAESound::Finish ( )

§ GetChannel()

AEChannel ActiveAE::CActiveAESound::GetChannel ( )
inlineoverridevirtual

Implements IAESound.

§ GetChunkSize()

int CActiveAESound::GetChunkSize ( )

§ GetFileSize()

int ActiveAE::CActiveAESound::GetFileSize ( )
inline

§ GetSound()

CSoundPacket * CActiveAESound::GetSound ( bool  orig)

§ GetVolume()

float ActiveAE::CActiveAESound::GetVolume ( )
inlineoverridevirtual

Implements IAESound.

§ InitSound()

uint8_t ** CActiveAESound::InitSound ( bool  orig,
SampleConfig  config,
int  nb_samples 
)

§ IsConverted()

bool ActiveAE::CActiveAESound::IsConverted ( )
inline

§ IsPlaying()

bool CActiveAESound::IsPlaying ( )
overridevirtual
Todo:
implement

Implements IAESound.

§ IsSeekPossible()

bool ActiveAE::CActiveAESound::IsSeekPossible ( )
inline

§ Play()

void CActiveAESound::Play ( )
overridevirtual

Implements IAESound.

§ Prepare()

bool CActiveAESound::Prepare ( )

§ Read()

int CActiveAESound::Read ( void h,
uint8_t buf,
int  size 
)
static

§ Seek()

int64_t CActiveAESound::Seek ( void h,
int64_t  pos,
int  whence 
)
static

§ SetChannel()

void ActiveAE::CActiveAESound::SetChannel ( AEChannel  channel)
inlineoverridevirtual

Implements IAESound.

§ SetConverted()

void ActiveAE::CActiveAESound::SetConverted ( bool  state)
inline

§ SetVolume()

void ActiveAE::CActiveAESound::SetVolume ( float  volume)
inlineoverridevirtual

Implements IAESound.

§ Stop()

void CActiveAESound::Stop ( )
overridevirtual

Implements IAESound.

§ StoreSound()

bool CActiveAESound::StoreSound ( bool  orig,
uint8_t **  buffer,
int  samples,
int  linesize 
)

Member Data Documentation

§ m_activeAE

CActiveAE* ActiveAE::CActiveAESound::m_activeAE
protected

§ m_channel

AEChannel ActiveAE::CActiveAESound::m_channel
protected

§ m_dst_sound

CSoundPacket* ActiveAE::CActiveAESound::m_dst_sound
protected

§ m_filename

std::string ActiveAE::CActiveAESound::m_filename
protected

§ m_fileSize

int ActiveAE::CActiveAESound::m_fileSize
protected

§ m_isConverted

bool ActiveAE::CActiveAESound::m_isConverted
protected

§ m_isSeekPossible

bool ActiveAE::CActiveAESound::m_isSeekPossible
protected

§ m_orig_sound

CSoundPacket* ActiveAE::CActiveAESound::m_orig_sound
protected

§ m_pFile

XFILE::CFile* ActiveAE::CActiveAESound::m_pFile
protected

§ m_volume

float ActiveAE::CActiveAESound::m_volume
protected

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