forked from nmlgc/musicroom
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathenc_vorbis.h
47 lines (36 loc) · 1.1 KB
/
enc_vorbis.h
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
// Music Room Interface
// --------------------
// enc_vorbis.h - Built-in Vorbis encoding
// --------------------
// "©" Nmlgc, 2011
#ifndef MUSICROOM_ENC_VORBIS_H
#define MUSICROOM_ENC_VORBIS_H
// Forward declarations
namespace FX
{
class FXCheckButton;
}
struct OggVorbis_EncState;
class LCVorbisQuality;
struct Encoder_Vorbis : public Encoder
{
protected:
// Settings
// --------
// Widget storage
LCVorbisQuality* VQ;
FXCheckButton* MS;
void FmtReadConfig(ConfigParser* Sect);
void FmtStop();
public:
float Quality; // Vorbis quality setting
bool ChainStreamAssemble; // Create chained bitstream output files where possible
void DlgCreate(FXVerticalFrame* Frame, FXDialogBox* Target, const FXuint& Msg);
bool DlgApply(FXDialogBox* Parent);
FXString Init(GameInfo* GI);
bool Encode(const FXString& DestFN, const FXString& SrcFN, Extract_Vals& V);
// Main extraction function.
// Returns true if [TI] was correctly extracted to [EncFN].
bool Extract(TrackInfo* TI, FXString& EncFN, GameInfo* GI, Extract_Vals& V);
};
#endif /* MUSICROOM_ENC_VORBIS_H */