00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef UI_ALSADEVICESPAGE_H
00011 #define UI_ALSADEVICESPAGE_H
00012
00013 #include <QtCore/QVariant>
00014 #include <QtGui/QAction>
00015 #include <QtGui/QApplication>
00016 #include <QtGui/QButtonGroup>
00017 #include <QtGui/QComboBox>
00018 #include <QtGui/QGroupBox>
00019 #include <QtGui/QHBoxLayout>
00020 #include <QtGui/QHeaderView>
00021 #include <QtGui/QLabel>
00022 #include <QtGui/QVBoxLayout>
00023 #include <QtGui/QWidget>
00024
00025 QT_BEGIN_NAMESPACE
00026
00027 class Ui_AlsaDevicesPage
00028 {
00029 public:
00030 QVBoxLayout *vboxLayout;
00031 QGroupBox *groupBox;
00032 QVBoxLayout *vboxLayout1;
00033 QHBoxLayout *hboxLayout;
00034 QLabel *label;
00035 QComboBox *devicesCombo;
00036 QHBoxLayout *hboxLayout1;
00037 QLabel *label_2;
00038 QComboBox *periodsCombo;
00039 QHBoxLayout *hboxLayout2;
00040 QLabel *label_3;
00041 QComboBox *ditherShapeComboBox;
00042
00043 void setupUi(QWidget *AlsaDevicesPage)
00044 {
00045 if (AlsaDevicesPage->objectName().isEmpty())
00046 AlsaDevicesPage->setObjectName(QString::fromUtf8("AlsaDevicesPage"));
00047 AlsaDevicesPage->resize(356, 141);
00048 vboxLayout = new QVBoxLayout(AlsaDevicesPage);
00049 vboxLayout->setObjectName(QString::fromUtf8("vboxLayout"));
00050 groupBox = new QGroupBox(AlsaDevicesPage);
00051 groupBox->setObjectName(QString::fromUtf8("groupBox"));
00052 vboxLayout1 = new QVBoxLayout(groupBox);
00053 vboxLayout1->setSpacing(6);
00054 vboxLayout1->setObjectName(QString::fromUtf8("vboxLayout1"));
00055 vboxLayout1->setContentsMargins(9, 9, 9, 9);
00056 hboxLayout = new QHBoxLayout();
00057 hboxLayout->setSpacing(6);
00058 hboxLayout->setObjectName(QString::fromUtf8("hboxLayout"));
00059 hboxLayout->setContentsMargins(0, 0, 0, 0);
00060 label = new QLabel(groupBox);
00061 label->setObjectName(QString::fromUtf8("label"));
00062
00063 hboxLayout->addWidget(label);
00064
00065 devicesCombo = new QComboBox(groupBox);
00066 devicesCombo->setObjectName(QString::fromUtf8("devicesCombo"));
00067
00068 hboxLayout->addWidget(devicesCombo);
00069
00070
00071 vboxLayout1->addLayout(hboxLayout);
00072
00073 hboxLayout1 = new QHBoxLayout();
00074 hboxLayout1->setSpacing(6);
00075 hboxLayout1->setObjectName(QString::fromUtf8("hboxLayout1"));
00076 hboxLayout1->setContentsMargins(0, 0, 0, 0);
00077 label_2 = new QLabel(groupBox);
00078 label_2->setObjectName(QString::fromUtf8("label_2"));
00079
00080 hboxLayout1->addWidget(label_2);
00081
00082 periodsCombo = new QComboBox(groupBox);
00083 periodsCombo->setObjectName(QString::fromUtf8("periodsCombo"));
00084
00085 hboxLayout1->addWidget(periodsCombo);
00086
00087
00088 vboxLayout1->addLayout(hboxLayout1);
00089
00090 hboxLayout2 = new QHBoxLayout();
00091 hboxLayout2->setSpacing(6);
00092 hboxLayout2->setObjectName(QString::fromUtf8("hboxLayout2"));
00093 hboxLayout2->setContentsMargins(0, 0, 0, 0);
00094 label_3 = new QLabel(groupBox);
00095 label_3->setObjectName(QString::fromUtf8("label_3"));
00096
00097 hboxLayout2->addWidget(label_3);
00098
00099 ditherShapeComboBox = new QComboBox(groupBox);
00100 ditherShapeComboBox->setObjectName(QString::fromUtf8("ditherShapeComboBox"));
00101
00102 hboxLayout2->addWidget(ditherShapeComboBox);
00103
00104
00105 vboxLayout1->addLayout(hboxLayout2);
00106
00107
00108 vboxLayout->addWidget(groupBox);
00109
00110
00111 retranslateUi(AlsaDevicesPage);
00112
00113 QMetaObject::connectSlotsByName(AlsaDevicesPage);
00114 }
00115
00116 void retranslateUi(QWidget *AlsaDevicesPage)
00117 {
00118 AlsaDevicesPage->setWindowTitle(QApplication::translate("AlsaDevicesPage", "Form", 0, QApplication::UnicodeUTF8));
00119 groupBox->setTitle(QApplication::translate("AlsaDevicesPage", "ALSA Device", 0, QApplication::UnicodeUTF8));
00120 #ifndef QT_NO_TOOLTIP
00121 label->setToolTip(QApplication::translate("AlsaDevicesPage", "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
00122 "p, li { white-space: pre-wrap; }\n"
00123 "</style></head><body style=\" font-family:'Sans Serif'; font-size:9pt; font-weight:400; font-style:normal; text-decoration:none;\">\n"
00124 "<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"
00125 "<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"
00126 "<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"
00127 "<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"
00128 "<p style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margi"
00129 "n-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"></p>\n"
00130 "<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"
00131 "<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"
00132 "<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"
00133 "<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"
00134 "<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"
00135 "<p style=\" margin-top:0px; margin-bo"
00136 "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"
00137 "<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"
00138 "<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"
00139 "<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>", 0, QApplication::UnicodeUTF8));
00140 #endif // QT_NO_TOOLTIP
00141 label->setText(QApplication::translate("AlsaDevicesPage", "Device", 0, QApplication::UnicodeUTF8));
00142 #ifndef QT_NO_TOOLTIP
00143 label_2->setToolTip(QApplication::translate("AlsaDevicesPage", "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
00144 "p, li { white-space: pre-wrap; }\n"
00145 "</style></head><body style=\" font-family:'Sans Serif'; font-size:9pt; font-weight:400; font-style:normal; text-decoration:none;\">\n"
00146 "<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"
00147 "<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"
00148 "<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"
00149 "<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"
00150 "<p style=\"-qt-paragraph-type:empty; margin-top:"
00151 "0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"></p>\n"
00152 "<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"
00153 "<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"
00154 "<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"
00155 "<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"
00156 "<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>", 0, QApplication::UnicodeUTF8));
00157 #endif // QT_NO_TOOLTIP
00158 label_2->setText(QApplication::translate("AlsaDevicesPage", "Nr. of periods", 0, QApplication::UnicodeUTF8));
00159 periodsCombo->clear();
00160 periodsCombo->insertItems(0, QStringList()
00161 << QApplication::translate("AlsaDevicesPage", "2", 0, QApplication::UnicodeUTF8)
00162 << QApplication::translate("AlsaDevicesPage", "3", 0, QApplication::UnicodeUTF8)
00163 );
00164 #ifndef QT_NO_TOOLTIP
00165 label_3->setToolTip(QApplication::translate("AlsaDevicesPage", "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
00166 "p, li { white-space: pre-wrap; }\n"
00167 "</style></head><body style=\" font-family:'Sans Serif'; font-size:9pt; font-weight:400; font-style:normal; text-decoration:none;\">\n"
00168 "<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"
00169 "<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"
00170 "<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"
00171 "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>", 0, QApplication::UnicodeUTF8));
00172 #endif // QT_NO_TOOLTIP
00173 label_3->setText(QApplication::translate("AlsaDevicesPage", "Dither", 0, QApplication::UnicodeUTF8));
00174 ditherShapeComboBox->clear();
00175 ditherShapeComboBox->insertItems(0, QStringList()
00176 << QApplication::translate("AlsaDevicesPage", "None", 0, QApplication::UnicodeUTF8)
00177 << QApplication::translate("AlsaDevicesPage", "Shaped", 0, QApplication::UnicodeUTF8)
00178 << QApplication::translate("AlsaDevicesPage", "Rectangular", 0, QApplication::UnicodeUTF8)
00179 << QApplication::translate("AlsaDevicesPage", "Triangular", 0, QApplication::UnicodeUTF8)
00180 );
00181 Q_UNUSED(AlsaDevicesPage);
00182 }
00183
00184 };
00185
00186 namespace Ui {
00187 class AlsaDevicesPage: public Ui_AlsaDevicesPage {};
00188 }
00189
00190 QT_END_NAMESPACE
00191
00192 #endif // UI_ALSADEVICESPAGE_H