summaryrefslogtreecommitdiffstats
path: root/HBAc3Decoder.h
blob: f9d6ad678303b116405063b9fe0fa5f568038c34 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/* $Id: HBAc3Decoder.h,v 1.6 2003/08/25 19:47:14 titer Exp $ */

#ifndef HB_AC3_DECODER_H
#define HB_AC3_DECODER_H

#include "HBThread.h"
class HBAudioInfo;
class HBBuffer;
class HBManager;

class HBAc3Decoder : public HBThread
{
    public:
        HBAc3Decoder( HBManager * manager, HBAudioInfo * audioInfo );
    
    private:
        void DoWork();
        bool GetBytes( uint32_t size );
        void PushSilence();
        
        HBManager         * fManager;
        HBAudioInfo       * fAudioInfo;
        
        HBBuffer          * fAc3Frame;
        HBBuffer          * fAc3Buffer;
        uint32_t            fPosInBuffer;
};

#endif