/* BoCA - BonkEnc Component Architecture * Copyright (C) 2007-2022 Robert Kausch * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation, either version 2 of * the License, or (at your option) any later version. * * THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. */ #ifndef H_COREAUDIOCONFIG #define H_COREAUDIOCONFIG #include #include #include "connector/communication.h" namespace CA { # include }; using namespace smooth; using namespace smooth::GUI; using namespace BoCA; namespace BoCA { class ConfigureCoreAudio : public ConfigLayer { private: TabWidget *tabwidget; Layer *layer_format; GroupBox *group_id3v2; CheckBox *check_id3v2; Text *text_note; Text *text_id3v2; GroupBox *group_mp4; OptionBox *option_mp4; OptionBox *option_aac; GroupBox *group_extension; OptionBox *option_extension_m4a; OptionBox *option_extension_m4b; OptionBox *option_extension_m4r; OptionBox *option_extension_mp4; Layer *layer_quality; GroupBox *group_codec; Text *text_codec; ComboBox *combo_codec; GroupBox *group_bitrate; Text *text_bitrate; Slider *slider_bitrate; EditBox *edit_bitrate; Text *text_bitrate_kbps; CoreAudioCommCodecs formats; Array codecs; Array bitrates; Int bitrate; Bool allowID3; Int fileFormat; Int fileExtension; slots: Void SetCodec(); Void SetBitrate(); Void SetBitrateByEditBox(); Void SetFileFormat(); public: static const String ConfigID; ConfigureCoreAudio(const CoreAudioCommCodecs &); ~ConfigureCoreAudio(); Int SaveSettings(); }; }; #endif