OSDN Git Service

67b8647d5b9878bc5cf4fd8312fb09a71f7d9131
[handbrake-jp/handbrake-jp-git.git] / core / Mp3Encoder.h
1 /* $Id: Mp3Encoder.h,v 1.5 2003/09/30 14:38:15 titer Exp $
2
3    This file is part of the HandBrake source code.
4    Homepage: <http://beos.titer.org/handbrake/>.
5    It may be used under the terms of the GNU General Public License. */
6
7 #ifndef HB_MP3_ENCODER_H
8 #define HB_MP3_ENCODER_H
9
10 #include "Common.h"
11 #include "Thread.h"
12
13 class HBMp3Encoder : public HBThread
14 {
15     public:
16                     HBMp3Encoder( HBManager * manager,
17                                   HBAudio * audio );
18
19     private:
20         void        DoWork();
21         bool        GetSamples( uint32_t count );
22
23         HBManager * fManager;
24         HBAudio   * fAudio;
25
26         HBBuffer  * fRawBuffer;
27         uint32_t    fPosInBuffer;  /* in samples */
28         float     * fLeftSamples;
29         float     * fRightSamples;
30
31         float       fPosition;
32 };
33
34 #endif