lib/libcoolstream2: headers update

This commit is contained in:
[CST] Focus
2013-07-18 14:43:35 +04:00
parent e6af083de8
commit c337d26f99
3 changed files with 38 additions and 16 deletions

View File

@@ -78,15 +78,12 @@ private:
unsigned int unit;
cDemux *demux;
cVideo *video;
CS_AUDIO_PDATA *privateData;
//unsigned int cEncodedDataOnSPDIF, cEncodedDataOnHDMI;
CS_AUDIO_PDATA *privateData;
bool muted;
AUDIO_FORMAT streamType;
AUDIO_SYNC_MODE syncMode;
bool started;
unsigned int uAudioPTSDelay;
unsigned int uAudioDolbyPTSDelay, uAudioMpegPTSDelay;
unsigned int uCurrentPTSDelay;
bool receivedDelay;
/* internal methods */
@@ -100,6 +97,10 @@ private:
bool spdifDD;
bool hasMuteScheduled;
bool analogOut;
#ifdef ISAPOLLO
bool containerMode;
bool hbrMode;
#endif
//
cAudio(unsigned int Unit);
public:
@@ -134,7 +135,7 @@ public:
AUDIO_FORMAT GetStreamType(void) { return streamType; }
bool ReceivedAudioDelay(void) { return receivedDelay; }
void SetReceivedAudioDelay(bool Set = false) { receivedDelay = Set; }
unsigned int GetAudioDelay(void) { return (streamType == AUDIO_FMT_DOLBY_DIGITAL) ? uAudioDolbyPTSDelay : uAudioMpegPTSDelay; }
unsigned int GetAudioDelay(void) { return uCurrentPTSDelay; }
void SetSyncMode(AVSYNC_TYPE SyncMode);
/* stream source */
@@ -162,6 +163,12 @@ public:
void SetDemux(cDemux *Demux);
void SetVideo(cVideo *Video);
static cAudio *GetDecoder(unsigned int Unit);
bool Started(void);
bool Paused(void);
#ifdef ISAPOLLO
void SetHBRMode(bool Enable = false);
void SetContainerMode(bool Enable = false);
#endif
};
#endif //__AUDIO_CS_H_