Debian Codegraph @

components/encoder/coreaudioconnect/config.h

raw symbols SCIP
1 /* BoCA - BonkEnc Component Architecture
2 * Copyright (C) 2007-2022 Robert Kausch <[email protected]>
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License as
6 * published by the Free Software Foundation, either version 2 of
7 * the License, or (at your option) any later version.
8 *
9 * THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
10 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
11 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. */
12
13 #ifndef H_COREAUDIOCONFIG
14 #define H_COREAUDIOCONFIG
15
16 #include <smooth.h>
17 #include <boca.h>
18
19 #include "connector/communication.h"
20
21 namespace CA
22 {
23 # include <AudioToolbox/AudioFormat.h>
24 };
25
26 using namespace smooth;
27 using namespace smooth::GUI;
28
29 using namespace BoCA;
30
31 namespace BoCA
32 {
33 class ConfigureCoreAudio : public ConfigLayer
34 {
35 private:
36 TabWidget *tabwidget;
37
38 Layer *layer_format;
39
40 GroupBox *group_id3v2;
41 CheckBox *check_id3v2;
42 Text *text_note;
43 Text *text_id3v2;
44
45 GroupBox *group_mp4;
46 OptionBox *option_mp4;
47 OptionBox *option_aac;
48
49 GroupBox *group_extension;
50 OptionBox *option_extension_m4a;
51 OptionBox *option_extension_m4b;
52 OptionBox *option_extension_m4r;
53 OptionBox *option_extension_mp4;
54
55 Layer *layer_quality;
56
57 GroupBox *group_codec;
58 Text *text_codec;
59 ComboBox *combo_codec;
60
61 GroupBox *group_bitrate;
62 Text *text_bitrate;
63 Slider *slider_bitrate;
64 EditBox *edit_bitrate;
65 Text *text_bitrate_kbps;
66
67 CoreAudioCommCodecs formats;
68
69 Array<UnsignedInt> codecs;
70 Array<Int> bitrates;
71
72 Int bitrate;
73 Bool allowID3;
74 Int fileFormat;
75 Int fileExtension;
76 slots:
77 Void SetCodec();
78 Void SetBitrate();
79 Void SetBitrateByEditBox();
80 Void SetFileFormat();
81 public:
82 static const String ConfigID;
83
84 ConfigureCoreAudio(const CoreAudioCommCodecs &);
85 ~ConfigureCoreAudio();
86
87 Int SaveSettings();
88 };
89 };
90
91 #endif