6 #include "vorbis/vorbisenc.h"
7 #include "vorbis/vorbisfile.h"
9 #include "resample.inc"
16 class FileVorbis
: public FileBase
19 FileVorbis(Asset
*asset
, File
*file
);
22 static void get_parameters(BC_WindowBase
*parent_window
,
24 BC_WindowBase
* &format_window
,
27 int reset_parameters_derived();
29 static int check_sig(Asset
*asset
);
30 int open_file(int rd
, int wr
);
32 int write_samples(double **buffer
,
35 int read_samples(double *buffer
, int64_t len
);
41 #define HISTORY_MAX 0x100000
56 class VorbisConfigAudio
;
59 class VorbisFixedBitrate
: public BC_Radial
62 VorbisFixedBitrate(int x
, int y
, VorbisConfigAudio
*gui
);
64 VorbisConfigAudio
*gui
;
67 class VorbisVariableBitrate
: public BC_Radial
70 VorbisVariableBitrate(int x
, int y
, VorbisConfigAudio
*gui
);
72 VorbisConfigAudio
*gui
;
75 class VorbisMinBitrate
: public BC_TextBox
78 VorbisMinBitrate(int x
,
80 VorbisConfigAudio
*gui
,
83 VorbisConfigAudio
*gui
;
86 class VorbisMaxBitrate
: public BC_TextBox
89 VorbisMaxBitrate(int x
,
91 VorbisConfigAudio
*gui
,
94 VorbisConfigAudio
*gui
;
97 class VorbisAvgBitrate
: public BC_TextBox
100 VorbisAvgBitrate(int x
,
102 VorbisConfigAudio
*gui
,
105 VorbisConfigAudio
*gui
;
108 class VorbisConfigAudio
: public BC_Window
111 VorbisConfigAudio(BC_WindowBase
*parent_window
, Asset
*asset
);
112 ~VorbisConfigAudio();
114 int create_objects();
117 VorbisFixedBitrate
*fixed_bitrate
;
118 VorbisVariableBitrate
*variable_bitrate
;
119 BC_WindowBase
*parent_window
;
120 char string
[BCTEXTLEN
];