1 /******************************************************************************** 2 ** Form generated from reading UI file 'AlsaDevicesPage.ui' 3 ** 4 ** Created by: Qt User Interface Compiler version 5.7.1 5 ** 6 ** WARNING! All changes made in this file will be lost when recompiling UI file! 7 ********************************************************************************/ 8 9 #ifndef UI_ALSADEVICESPAGE_H 10 #define UI_ALSADEVICESPAGE_H 11 12 #include <QtCore/QVariant> 13 #include <QtWidgets/QAction> 14 #include <QtWidgets/QApplication> 15 #include <QtWidgets/QButtonGroup> 16 #include <QtWidgets/QComboBox> 17 #include <QtWidgets/QGroupBox> 18 #include <QtWidgets/QHBoxLayout> 19 #include <QtWidgets/QHeaderView> 20 #include <QtWidgets/QLabel> 21 #include <QtWidgets/QVBoxLayout> 22 #include <QtWidgets/QWidget> 23 24 QT_BEGIN_NAMESPACE 25 26 class Ui_AlsaDevicesPage 27 { 28 public: 29 QVBoxLayout *vboxLayout; 30 QGroupBox *groupBox; 31 QVBoxLayout *vboxLayout1; 32 QHBoxLayout *hboxLayout; 33 QLabel *label; 34 QComboBox *devicesCombo; 35 QHBoxLayout *hboxLayout1; 36 QLabel *label_2; 37 QComboBox *periodsCombo; 38 QHBoxLayout *hboxLayout2; 39 QLabel *label_3; 40 QComboBox *ditherShapeComboBox; 41 setupUi(QWidget * AlsaDevicesPage)42 void setupUi(QWidget *AlsaDevicesPage) 43 { 44 if (AlsaDevicesPage->objectName().isEmpty()) 45 AlsaDevicesPage->setObjectName(QStringLiteral("AlsaDevicesPage")); 46 AlsaDevicesPage->resize(356, 141); 47 vboxLayout = new QVBoxLayout(AlsaDevicesPage); 48 vboxLayout->setObjectName(QStringLiteral("vboxLayout")); 49 groupBox = new QGroupBox(AlsaDevicesPage); 50 groupBox->setObjectName(QStringLiteral("groupBox")); 51 vboxLayout1 = new QVBoxLayout(groupBox); 52 vboxLayout1->setSpacing(6); 53 vboxLayout1->setObjectName(QStringLiteral("vboxLayout1")); 54 vboxLayout1->setContentsMargins(9, 9, 9, 9); 55 hboxLayout = new QHBoxLayout(); 56 hboxLayout->setSpacing(6); 57 hboxLayout->setObjectName(QStringLiteral("hboxLayout")); 58 hboxLayout->setContentsMargins(0, 0, 0, 0); 59 label = new QLabel(groupBox); 60 label->setObjectName(QStringLiteral("label")); 61 62 hboxLayout->addWidget(label); 63 64 devicesCombo = new QComboBox(groupBox); 65 devicesCombo->setObjectName(QStringLiteral("devicesCombo")); 66 67 hboxLayout->addWidget(devicesCombo); 68 69 70 vboxLayout1->addLayout(hboxLayout); 71 72 hboxLayout1 = new QHBoxLayout(); 73 hboxLayout1->setSpacing(6); 74 hboxLayout1->setObjectName(QStringLiteral("hboxLayout1")); 75 hboxLayout1->setContentsMargins(0, 0, 0, 0); 76 label_2 = new QLabel(groupBox); 77 label_2->setObjectName(QStringLiteral("label_2")); 78 79 hboxLayout1->addWidget(label_2); 80 81 periodsCombo = new QComboBox(groupBox); 82 periodsCombo->setObjectName(QStringLiteral("periodsCombo")); 83 84 hboxLayout1->addWidget(periodsCombo); 85 86 87 vboxLayout1->addLayout(hboxLayout1); 88 89 hboxLayout2 = new QHBoxLayout(); 90 hboxLayout2->setSpacing(6); 91 hboxLayout2->setObjectName(QStringLiteral("hboxLayout2")); 92 hboxLayout2->setContentsMargins(0, 0, 0, 0); 93 label_3 = new QLabel(groupBox); 94 label_3->setObjectName(QStringLiteral("label_3")); 95 96 hboxLayout2->addWidget(label_3); 97 98 ditherShapeComboBox = new QComboBox(groupBox); 99 ditherShapeComboBox->setObjectName(QStringLiteral("ditherShapeComboBox")); 100 101 hboxLayout2->addWidget(ditherShapeComboBox); 102 103 104 vboxLayout1->addLayout(hboxLayout2); 105 106 107 vboxLayout->addWidget(groupBox); 108 109 110 retranslateUi(AlsaDevicesPage); 111 112 QMetaObject::connectSlotsByName(AlsaDevicesPage); 113 } // setupUi 114 retranslateUi(QWidget * AlsaDevicesPage)115 void retranslateUi(QWidget *AlsaDevicesPage) 116 { 117 AlsaDevicesPage->setWindowTitle(QApplication::translate("AlsaDevicesPage", "Form", Q_NULLPTR)); 118 groupBox->setTitle(QApplication::translate("AlsaDevicesPage", "ALSA Device", Q_NULLPTR)); 119 #ifndef QT_NO_TOOLTIP 120 label->setToolTip(QApplication::translate("AlsaDevicesPage", "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n" 121 "p, li { white-space: pre-wrap; }\n" 122 "</style></head><body style=\" font-family:'Sans Serif'; font-size:9pt; font-weight:400; font-style:normal; text-decoration:none;\">\n" 123 "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-weight:600;\">Device:</span></p>\n" 124 "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">The real or virtual ALSA device to be used.</p>\n" 125 "<p style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"></p>\n" 126 "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">A real device is the audiocard installed in your system.</p>\n" 127 "<p style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margi" 128 "n-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"></p>\n" 129 "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">A virtual device is one created in the .asoundrc file, </p>\n" 130 "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">often located in your home folder.</p>\n" 131 "<p style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"></p>\n" 132 "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">If unsure, use either the default device, this will use the audiodevice </p>\n" 133 "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">configured by your distribution, or the device that names your audio card.</p>\n" 134 "<p style=\" margin-top:0px; margin-bo" 135 "ttom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">In the latter case, please make sure no application uses the audiocard, </p>\n" 136 "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">else the driver won't be able to initialize!</p>\n" 137 "<p style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"></p>\n" 138 "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">For more info see chapter 3.1: \"The Driver Backend\" of the User Manual</p></body></html>", Q_NULLPTR)); 139 #endif // QT_NO_TOOLTIP 140 label->setText(QApplication::translate("AlsaDevicesPage", "Device", Q_NULLPTR)); 141 #ifndef QT_NO_TOOLTIP 142 label_2->setToolTip(QApplication::translate("AlsaDevicesPage", "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n" 143 "p, li { white-space: pre-wrap; }\n" 144 "</style></head><body style=\" font-family:'Sans Serif'; font-size:9pt; font-weight:400; font-style:normal; text-decoration:none;\">\n" 145 "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-weight:600;\">Number of Periods:</span></p>\n" 146 "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Audio is managed in small chunks called periods. </p>\n" 147 "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">This value determines how many of these chunks are </p>\n" 148 "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">to be used by the driver of the audiocard.</p>\n" 149 "<p style=\"-qt-paragraph-type:empty; margin-top:" 150 "0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"></p>\n" 151 "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">The default should work just fine, and gives optimal latency behavior.</p>\n" 152 "<p style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"></p>\n" 153 "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">However, some (buggy) alsa drivers don't work correctly </p>\n" 154 "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">with the default of 2, if you experience very choppy audio, </p>\n" 155 "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">please try to use 3 periods.</p></body></html>", Q_NULLPTR)); 156 #endif // QT_NO_TOOLTIP 157 label_2->setText(QApplication::translate("AlsaDevicesPage", "Nr. of periods", Q_NULLPTR)); 158 periodsCombo->clear(); 159 periodsCombo->insertItems(0, QStringList() 160 << QApplication::translate("AlsaDevicesPage", "2", Q_NULLPTR) 161 << QApplication::translate("AlsaDevicesPage", "3", Q_NULLPTR) 162 ); 163 #ifndef QT_NO_TOOLTIP 164 label_3->setToolTip(QApplication::translate("AlsaDevicesPage", "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n" 165 "p, li { white-space: pre-wrap; }\n" 166 "</style></head><body style=\" font-family:'Sans Serif'; font-size:9pt; font-weight:400; font-style:normal; text-decoration:none;\">\n" 167 "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Dither is used to make the audio cleaner. </p>\n" 168 "<p style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"></p>\n" 169 "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">The best way to describe it is to imagine a painting with many dots. If you view it up close you can see each dot and the image is not very clear. If you view it from far away the image becomes clearer because your eyes/brain dither the dots to smooth out the image. It is a murky subject and obviously a very personal ch" 170 "oice as to what dither is the best. For most people it is just plain magic. Anyone running at 16bit who cares about quality or has CPU cycles to spare should run with dither. Triangular is probably the best compromise of quality vs cpu cost (its very fast), but shaped is the best</p></body></html>", Q_NULLPTR)); 171 #endif // QT_NO_TOOLTIP 172 label_3->setText(QApplication::translate("AlsaDevicesPage", "Dither", Q_NULLPTR)); 173 ditherShapeComboBox->clear(); 174 ditherShapeComboBox->insertItems(0, QStringList() 175 << QApplication::translate("AlsaDevicesPage", "None", Q_NULLPTR) 176 << QApplication::translate("AlsaDevicesPage", "Shaped", Q_NULLPTR) 177 << QApplication::translate("AlsaDevicesPage", "Rectangular", Q_NULLPTR) 178 << QApplication::translate("AlsaDevicesPage", "Triangular", Q_NULLPTR) 179 ); 180 } // retranslateUi 181 182 }; 183 184 namespace Ui { 185 class AlsaDevicesPage: public Ui_AlsaDevicesPage {}; 186 } // namespace Ui 187 188 QT_END_NAMESPACE 189 190 #endif // UI_ALSADEVICESPAGE_H 191