diff options
Diffstat (limited to 'dxr3audiodecoder.h')
-rw-r--r-- | dxr3audiodecoder.h | 33 |
1 files changed, 11 insertions, 22 deletions
diff --git a/dxr3audiodecoder.h b/dxr3audiodecoder.h index 22783d3..fd9dc6b 100644 --- a/dxr3audiodecoder.h +++ b/dxr3audiodecoder.h @@ -38,7 +38,7 @@ public: cDxr3AudioDecoder(); ~cDxr3AudioDecoder(); - void Init(void); // init in const? + void Init(); void Decode(const uint8_t* buf, int length, uint32_t pts, cDxr3SyncBuffer &aBuf); @@ -47,22 +47,13 @@ public: void DecodeAc3Dts(const uint8_t* pPes, const uint8_t* buf, int length, uint32_t pts, cDxr3SyncBuffer &aBuf); - int GetRate(void) const - { - return rate; - } - int GetChannelCount(void) const - { - return channels; - } - int GetFrameSize(void) const - { - return frameSize; - } - void Reset(void) + int GetRate() const { return rate; } + int GetChannelCount() const { return channels; } + + void Reset() { - ac3dtsDecoder.Clear(); - rbuf.Clear(); + ac3dtsDecoder.Clear(); + rbuf.Clear(); } private: @@ -74,15 +65,13 @@ private: cMultichannelAudio ac3dtsDecoder; bool audioSynched; - bool decoderOpened; - uint8_t lastHeader[4]; + bool foundHeader; + bool decodeAudio; + int rate; int channels; - uint32_t frameSize; + uint8_t lastHeader[4]; uint8_t pcmbuf[AVCODEC_MAX_AUDIO_FRAME_SIZE]; - int volume; - bool foundHeader; - bool decodeAudio; cDxr3AudioDecoder(cDxr3AudioDecoder&); // no copy constructor }; |