4 * Copyright (C) 2008 Adam Williams <broadcast at earthling dot net>
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
28 #include "vorbis/vorbisenc.h"
29 #include "vorbis/vorbisfile.h"
36 class FileVorbis : public FileBase
39 FileVorbis(Asset *asset, File *file);
42 static void get_parameters(BC_WindowBase *parent_window,
43 Asset *asset, BC_WindowBase* &format_window,
44 int audio_options, int video_options, EDL *edl);
45 int reset_parameters_derived();
47 static int check_sig(Asset *asset);
48 int open_file(int rd, int wr);
49 int close_file_derived();
50 int write_samples(double **buffer,
53 int read_samples(double *buffer, int64_t len);
70 class VorbisConfigAudio;
73 class VorbisFixedBitrate : public BC_Radial
76 VorbisFixedBitrate(int x, int y, VorbisConfigAudio *gui);
78 VorbisConfigAudio *gui;
81 class VorbisVariableBitrate : public BC_Radial
84 VorbisVariableBitrate(int x, int y, VorbisConfigAudio *gui);
86 VorbisConfigAudio *gui;
89 class VorbisMinBitrate : public BC_TextBox
92 VorbisMinBitrate(int x,
94 VorbisConfigAudio *gui,
97 VorbisConfigAudio *gui;
100 class VorbisMaxBitrate : public BC_TextBox
103 VorbisMaxBitrate(int x,
105 VorbisConfigAudio *gui,
108 VorbisConfigAudio *gui;
111 class VorbisAvgBitrate : public BC_TextBox
114 VorbisAvgBitrate(int x,
116 VorbisConfigAudio *gui,
119 VorbisConfigAudio *gui;
122 class VorbisConfigAudio : public BC_Window
125 VorbisConfigAudio(BC_WindowBase *parent_window, Asset *asset);
126 ~VorbisConfigAudio();
128 void create_objects();
131 VorbisFixedBitrate *fixed_bitrate;
132 VorbisVariableBitrate *variable_bitrate;
133 BC_WindowBase *parent_window;
134 char string[BCTEXTLEN];