[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Traverso-commit] traverso/src core/AudioClip.cpp core/Project.cp...
From: |
Remon Sijrier |
Subject: |
[Traverso-commit] traverso/src core/AudioClip.cpp core/Project.cp... |
Date: |
Thu, 11 Oct 2007 13:01:56 +0000 |
CVSROOT: /sources/traverso
Module name: traverso
Changes by: Remon Sijrier <r_sijrier> 07/10/11 13:01:56
Modified files:
src/core : AudioClip.cpp Project.cpp
src/traverso/dialogs/settings: Pages.cpp Pages.h
SettingsDialog.cpp
src/traverso : traverso.pro traverso.qrc
src/traverso/ui: KeyboardConfigPage.ui PerformanceConfigPage.ui
Log message:
* Updated settings dialog to include resample and wavpack options
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/traverso/src/core/AudioClip.cpp?cvsroot=traverso&r1=1.141&r2=1.142
http://cvs.savannah.gnu.org/viewcvs/traverso/src/core/Project.cpp?cvsroot=traverso&r1=1.58&r2=1.59
http://cvs.savannah.gnu.org/viewcvs/traverso/src/traverso/dialogs/settings/Pages.cpp?cvsroot=traverso&r1=1.24&r2=1.25
http://cvs.savannah.gnu.org/viewcvs/traverso/src/traverso/dialogs/settings/Pages.h?cvsroot=traverso&r1=1.6&r2=1.7
http://cvs.savannah.gnu.org/viewcvs/traverso/src/traverso/dialogs/settings/SettingsDialog.cpp?cvsroot=traverso&r1=1.6&r2=1.7
http://cvs.savannah.gnu.org/viewcvs/traverso/src/traverso/traverso.pro?cvsroot=traverso&r1=1.73&r2=1.74
http://cvs.savannah.gnu.org/viewcvs/traverso/src/traverso/traverso.qrc?cvsroot=traverso&r1=1.22&r2=1.23
http://cvs.savannah.gnu.org/viewcvs/traverso/src/traverso/ui/KeyboardConfigPage.ui?cvsroot=traverso&r1=1.5&r2=1.6
http://cvs.savannah.gnu.org/viewcvs/traverso/src/traverso/ui/PerformanceConfigPage.ui?cvsroot=traverso&r1=1.2&r2=1.3
Patches:
Index: core/AudioClip.cpp
===================================================================
RCS file: /sources/traverso/traverso/src/core/AudioClip.cpp,v
retrieving revision 1.141
retrieving revision 1.142
diff -u -b -r1.141 -r1.142
--- core/AudioClip.cpp 3 Oct 2007 20:17:04 -0000 1.141
+++ core/AudioClip.cpp 11 Oct 2007 13:01:55 -0000 1.142
@@ -545,11 +545,10 @@
QString recordFormat = config().get_property("Recording", "FileFormat",
"wav").toString();
if (recordFormat == "wavpack") {
spec->writerType = "wavpack";
- bool useFast = config().get_property("Recording",
"WavpackFast", false).toBool();
- if (useFast) {
- spec->extraFormat["quality"] = "fast";
- }
- // spec->extraFormat["skip_wvx"] = "true";
+ QString compression = config().get_property("Recording",
"WavpackCompressionType", "fast").toString();
+ QString skipwvx = config().get_property("Recording",
"WavpackSkipWVX", "false").toString();
+ spec->extraFormat["quality"] = compression;
+ spec->extraFormat["skip_wvx"] = skipwvx;
}
else {
spec->writerType = "sndfile";
Index: core/Project.cpp
===================================================================
RCS file: /sources/traverso/traverso/src/core/Project.cpp,v
retrieving revision 1.58
retrieving revision 1.59
diff -u -b -r1.58 -r1.59
--- core/Project.cpp 10 Oct 2007 16:41:57 -0000 1.58
+++ core/Project.cpp 11 Oct 2007 13:01:55 -0000 1.59
@@ -59,7 +59,7 @@
m_exportThread = 0;
engineer = "";
- m_useResampling = config().get_property("Conversion",
"DynamicResampling", false).toBool();
+ m_useResampling = config().get_property("Conversion",
"DynamicResampling", true).toBool();
m_rootDir = config().get_property("Project", "directory",
"/directory/unknown/").toString() + "/" + m_title;
m_sourcesDir = m_rootDir + "/audiosources";
m_rate = audiodevice().get_sample_rate();
Index: traverso/dialogs/settings/Pages.cpp
===================================================================
RCS file: /sources/traverso/traverso/src/traverso/dialogs/settings/Pages.cpp,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -b -r1.24 -r1.25
--- traverso/dialogs/settings/Pages.cpp 21 Jun 2007 14:31:11 -0000 1.24
+++ traverso/dialogs/settings/Pages.cpp 11 Oct 2007 13:01:55 -0000 1.25
@@ -30,7 +30,11 @@
#include <Utils.h>
#include <Themer.h>
#include <InputEngine.h>
+#include "Interface.h"
#include <QDomDocument>
+#include <QPrinter>
+#include <QPrintDialog>
+#include <QTextEdit>
#if defined (JACK_SUPPORT)
RELAYTOOL_JACK
@@ -811,92 +815,199 @@
}
}
+void KeyboardConfigPage::on_exportButton_clicked()
+{
+ Interface::instance()->export_keymap();
+ QMessageBox::information( Interface::instance(), tr("KeyMap Export"),
+ tr("The exported keymap can be found here:\n\n
%1").arg(QDir::homePath() + "/traversokeymap.html"),
+ QMessageBox::Ok);
+}
+
+void KeyboardConfigPage::on_printButton_clicked()
+{
+ Interface::instance()->export_keymap();
+ QFile file(QDir::homePath() + "/traversokeymap.html");
+ if (!file.open(QIODevice::ReadOnly)) {
+ QMessageBox::information( Interface::instance(), tr("Printing
KeyMap"),
+ tr("The keymap export failed:\n\n
%1").arg(file.errorString()),
+ QMessageBox::Ok);
+ return;
+ }
+
+ QPrinter printer(QPrinter::ScreenResolution);
+ QPrintDialog printDialog(&printer, Interface::instance());
+ if (printDialog.exec() == QDialog::Accepted) {
+ QString string = file.readAll();
+ QTextEdit edit;
+ edit.insertHtml(string);
+ edit.document()->print(&printer);
+ }
+}
-/****************************************/
-/* DiskIO */
-/****************************************/
-DiskIOPage::DiskIOPage(QWidget * parent)
+
+PerformancePage::PerformancePage(QWidget * parent)
: ConfigPage(parent)
{
- m_config = new MemoryConfigPage(this);
- mainLayout->addWidget(m_config);
+ m_configpage = new PerformanceConfigPage(this);
+ mainLayout->addWidget(m_configpage);
mainLayout->addStretch(5);
load_config();
}
-void DiskIOPage::load_config()
+void PerformancePage::load_config()
{
+ int jogUpdateInterval = config().get_property("CCE",
"JogUpdateInterval", 28).toInt();
+ bool useOpenGL = config().get_property("Interface", "OpenGL",
false).toBool();
+
+ m_configpage->jogUpdateIntervalSpinBox->setValue(1000 /
jogUpdateInterval);
+ m_configpage->useOpenGLCheckBox->setChecked(useOpenGL);
+
+
double buffertime = config().get_property("Hardware", "readbuffersize",
1.0).toDouble();
- m_config->bufferTimeSpinBox->setValue(buffertime);
+ m_configpage->bufferTimeSpinBox->setValue(buffertime);
}
-void DiskIOPage::save_config()
+void PerformancePage::save_config()
{
- double buffertime = m_config->bufferTimeSpinBox->value();
+ config().set_property("Interface", "OpenGL",
m_configpage->useOpenGLCheckBox->isChecked());
+ config().set_property("CCE", "JogUpdateInterval", 1000 /
m_configpage->jogUpdateIntervalSpinBox->value());
+ double buffertime = m_configpage->bufferTimeSpinBox->value();
config().set_property("Hardware", "readbuffersize", buffertime);
}
-void DiskIOPage::reset_default_config()
+void PerformancePage::reset_default_config()
{
+ config().set_property("CCE", "JogUpdateInterval", 28);
+ config().set_property("Interface", "OpenGL", false);
config().set_property("Hardware", "readbuffersize", 1.0);
load_config();
}
-MemoryConfigPage::MemoryConfigPage(QWidget * parent)
- : QWidget(parent)
+PerformanceConfigPage::PerformanceConfigPage(QWidget* parent)
{
setupUi(this);
+
+#if defined (QT_OPENGL_SUPPORT)
+ useOpenGLCheckBox->setEnabled(true);
+#else
+ useOpenGLCheckBox->setEnabled(false);
+#endif
QIcon icon =
QApplication::style()->standardIcon(QStyle::SP_MessageBoxInformation);
reloadWarningLabel->setPixmap(icon.pixmap(22, 22));
}
+/****************************************/
+/* Recording */
+/****************************************/
-PerformancePage::PerformancePage(QWidget * parent)
+RecordingPage::RecordingPage(QWidget * parent)
: ConfigPage(parent)
{
- m_configpage = new PerformanceConfigPage(this);
- mainLayout->addWidget(m_configpage);
+ m_config = new RecordingConfigPage(this);
+ mainLayout->addWidget(m_config);
mainLayout->addStretch(5);
load_config();
}
-void PerformancePage::load_config()
+void RecordingPage::load_config()
{
- int jogUpdateInterval = config().get_property("CCE",
"JogUpdateInterval", 28).toInt();
- bool useOpenGL = config().get_property("Interface", "OpenGL",
false).toBool();
+ bool useResampling = config().get_property("Conversion",
"DynamicResampling", true).toBool();
+ if (useResampling) {
+ m_config->use_onthefly_resampling_checkbox_changed(Qt::Checked);
+ } else {
+
m_config->use_onthefly_resampling_checkbox_changed(Qt::Unchecked);
+ }
- m_configpage->jogUpdateIntervalSpinBox->setValue(1000 /
jogUpdateInterval);
- m_configpage->useOpenGLCheckBox->setChecked(useOpenGL);
+ QString recordFormat = config().get_property("Recording", "FileFormat",
"wav").toString();
+ if (recordFormat == "wavpack") {
+ m_config->encoding_index_changed(1);
+ } else {
+ m_config->encoding_index_changed(0);
+ }
+ QString wavpackcompression = config().get_property("Recording",
"WavpackCompressionType", "fast").toString();
+ if (wavpackcompression == "very_high") {
+ m_config->wavpackCompressionComboBox->setCurrentIndex(0);
+ } else if (wavpackcompression == "high") {
+ m_config->wavpackCompressionComboBox->setCurrentIndex(1);
+ } else {
+ m_config->wavpackCompressionComboBox->setCurrentIndex(2);
+ }
+
+ int index = config().get_property("Conversion",
"RTResamplingConverterType", 2).toInt();
+ m_config->ontheflyResampleComboBox->setCurrentIndex(index);
+
+ index = config().get_property("Conversion",
"ExportResamplingConverterType", 1).toInt();
+ m_config->exportDefaultResampleQualityComboBox->setCurrentIndex(index);
+
+// ontheflyResampleComboBox
+// exportDefaultResampleQualityComboBox
+// wavpackUseAlmostLosslessCheckBox
}
-void PerformancePage::save_config()
+void RecordingPage::save_config()
{
- config().set_property("Interface", "OpenGL",
m_configpage->useOpenGLCheckBox->isChecked());
- config().set_property("CCE", "JogUpdateInterval", 1000 /
m_configpage->jogUpdateIntervalSpinBox->value());
+ config().set_property("Conversion", "DynamicResampling",
m_config->useResamplingCheckBox->isChecked());
+ config().set_property("Conversion", "RTResamplingConverterType",
m_config->ontheflyResampleComboBox->currentIndex());
+ config().set_property("Conversion", "ExportResamplingConverterType",
m_config->exportDefaultResampleQualityComboBox->currentIndex());
+ config().set_property("Recording", "FileFormat",
m_config->encodingComboBox->itemData(m_config->encodingComboBox->currentIndex()).toString());
+ config().set_property("Recording", "WavpackCompressionType",
m_config->wavpackCompressionComboBox->itemData(m_config->wavpackCompressionComboBox->currentIndex()).toString());
+ QString skipwvx =
m_config->wavpackUseAlmostLosslessCheckBox->isChecked() ? "true" : "false";
+ config().set_property("Recording", "WavpackSkipWVX", skipwvx);
}
-void PerformancePage::reset_default_config()
+void RecordingPage::reset_default_config()
{
- config().set_property("CCE", "JogUpdateInterval", 28);
- config().set_property("Interface", "OpenGL", false);
+ config().set_property("Conversion", "DynamicResampling", true);
+ config().set_property("Conversion", "RTResamplingConverterType", 2);
+ config().set_property("Conversion", "ExportResamplingConverterType", 1);
+ config().set_property("Recording", "FileFormat", "wav");
+ config().set_property("Recording", "WavpackCompressionType", "fast");
+ config().set_property("Recording", "WavpackSkipWVX", "false");
+
load_config();
}
-PerformanceConfigPage::PerformanceConfigPage(QWidget* parent)
+RecordingConfigPage::RecordingConfigPage(QWidget * parent)
+ : QWidget(parent)
{
setupUi(this);
-#if defined (QT_OPENGL_SUPPORT)
- useOpenGLCheckBox->setEnabled(true);
-#else
- useOpenGLCheckBox->setEnabled(false);
-#endif
+
encodingInfoPushButton->setIcon(style()->standardIcon(QStyle::SP_FileDialogInfoView));
+ encodingComboBox->addItem("WAV", "wav");
+ encodingComboBox->addItem("WavPack", "wavpack");
+ wavpackCompressionComboBox->addItem("Very high", "very_high");
+ wavpackCompressionComboBox->addItem("High", "high");
+ wavpackCompressionComboBox->addItem("Fast", "fast");
+
+ connect(encodingComboBox, SIGNAL(currentIndexChanged(int)), this,
SLOT(encoding_index_changed(int)));
+ connect(useResamplingCheckBox, SIGNAL(stateChanged(int)),
+ this, SLOT(use_onthefly_resampling_checkbox_changed(int)));
}
-//eof
+void RecordingConfigPage::encoding_index_changed(int index)
+{
+ encodingComboBox->setCurrentIndex(index);
+ if (index == 0) {
+ wacpackGroupBox->hide();
+ }
+ if (index == 1) {
+ wacpackGroupBox->show();
+ }
+}
+
+void RecordingConfigPage::use_onthefly_resampling_checkbox_changed(int state)
+{
+ if (state == Qt::Checked) {
+ useResamplingCheckBox->setChecked(true);
+ ontheflyResampleComboBox->setEnabled(true);
+ } else {
+ useResamplingCheckBox->setChecked(false);
+ ontheflyResampleComboBox->setEnabled(false);
+ }
+}
Index: traverso/dialogs/settings/Pages.h
===================================================================
RCS file: /sources/traverso/traverso/src/traverso/dialogs/settings/Pages.h,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -b -r1.6 -r1.7
--- traverso/dialogs/settings/Pages.h 16 Apr 2007 18:44:26 -0000 1.6
+++ traverso/dialogs/settings/Pages.h 11 Oct 2007 13:01:55 -0000 1.7
@@ -27,7 +27,7 @@
#include "ui_DriverConfigPage.h"
#include "ui_KeyboardConfigPage.h"
#include "ui_BehaviorConfigPage.h"
-#include "ui_MemoryConfigPage.h"
+#include "ui_RecordingConfigPage.h"
#include "ui_ThemeConfigPage.h"
#include "ui_PerformanceConfigPage.h"
@@ -98,6 +98,8 @@
private slots:
void keymap_index_changed(const QString& keymap);
void update_keymap_combo();
+ void on_exportButton_clicked();
+ void on_printButton_clicked();
};
class BehaviorConfigPage : public QWidget, private Ui::BehaviorConfigPage
@@ -112,12 +114,16 @@
};
-class MemoryConfigPage : public QWidget, private Ui::MemoryConfigPage
+class RecordingConfigPage : public QWidget, private Ui::RecordingConfigPage
{
+ Q_OBJECT
public:
- MemoryConfigPage(QWidget* parent = 0);
+ RecordingConfigPage(QWidget* parent = 0);
private:
- friend class DiskIOPage;
+ friend class RecordingPage;
+private slots:
+ void encoding_index_changed(int index);
+ void use_onthefly_resampling_checkbox_changed(int state);
};
@@ -184,15 +190,15 @@
};
-class DiskIOPage : public ConfigPage
+class RecordingPage : public ConfigPage
{
public:
- DiskIOPage(QWidget *parent = 0);
+ RecordingPage(QWidget *parent = 0);
void load_config();
void save_config();
void reset_default_config();
private:
- MemoryConfigPage* m_config;
+ RecordingConfigPage* m_config;
};
Index: traverso/dialogs/settings/SettingsDialog.cpp
===================================================================
RCS file:
/sources/traverso/traverso/src/traverso/dialogs/settings/SettingsDialog.cpp,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -b -r1.6 -r1.7
--- traverso/dialogs/settings/SettingsDialog.cpp 16 Apr 2007 18:44:26
-0000 1.6
+++ traverso/dialogs/settings/SettingsDialog.cpp 11 Oct 2007 13:01:55
-0000 1.7
@@ -43,7 +43,7 @@
pagesWidget->addWidget(new BehaviorPage(this));
pagesWidget->addWidget(new AppearancePage(this));
pagesWidget->addWidget(new AudioDriverPage(this));
- pagesWidget->addWidget(new DiskIOPage(this));
+ pagesWidget->addWidget(new RecordingPage(this));
pagesWidget->addWidget(new KeyboardPage(this));
pagesWidget->addWidget(new PerformancePage(this));
@@ -104,8 +104,8 @@
driverButton->setSizeHint(QSize(100, 50));
QListWidgetItem* diskioButton = new QListWidgetItem(contentsWidget);
- diskioButton->setIcon(QIcon(":/diskdrive"));
- diskioButton->setText(tr("Disk I/O"));
+ diskioButton->setIcon(QIcon(":/audiosettings"));
+ diskioButton->setText(tr("Audio Options"));
diskioButton->setTextAlignment(Qt::AlignHCenter);
diskioButton->setFlags(Qt::ItemIsSelectable | Qt::ItemIsEnabled);
diskioButton->setSizeHint(QSize(100, 50));
Index: traverso/traverso.pro
===================================================================
RCS file: /sources/traverso/traverso/src/traverso/traverso.pro,v
retrieving revision 1.73
retrieving revision 1.74
diff -u -b -r1.73 -r1.74
--- traverso/traverso.pro 10 Oct 2007 16:41:58 -0000 1.73
+++ traverso/traverso.pro 11 Oct 2007 13:01:55 -0000 1.74
@@ -96,7 +96,7 @@
ui/PaDriverPage.ui \
ui/KeyboardConfigPage.ui \
ui/BehaviorConfigPage.ui \
- ui/MemoryConfigPage.ui \
+ ui/RecordingConfigPage.ui \
ui/ThemeConfigPage.ui \
ui/PerformanceConfigPage.ui \
ui/SongManagerDialog.ui \
Index: traverso/traverso.qrc
===================================================================
RCS file: /sources/traverso/traverso/src/traverso/traverso.qrc,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -b -r1.22 -r1.23
--- traverso/traverso.qrc 10 Oct 2007 16:41:58 -0000 1.22
+++ traverso/traverso.qrc 11 Oct 2007 13:01:55 -0000 1.23
@@ -26,6 +26,7 @@
<file
alias="audiocardsmall">../../resources/images/soundcardsmall.png</file>
<file
alias="harddrivesmall">../../resources/images/harddrivesmall.png</file>
<file
alias="diskdrive">../../resources/images/harddrive.png</file>
+ <file
alias="audiosettings">../../resources/images/audiosettings.png</file>
<file alias="driver">../../resources/images/driver.png</file>
<file
alias="memorysmall">../../resources/images/memory.png</file>
<file
alias="appearance">../../resources/images/appearance.png</file>
Index: traverso/ui/KeyboardConfigPage.ui
===================================================================
RCS file: /sources/traverso/traverso/src/traverso/ui/KeyboardConfigPage.ui,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -b -r1.5 -r1.6
--- traverso/ui/KeyboardConfigPage.ui 16 Apr 2007 18:44:26 -0000 1.5
+++ traverso/ui/KeyboardConfigPage.ui 11 Oct 2007 13:01:55 -0000 1.6
@@ -6,7 +6,7 @@
<x>0</x>
<y>0</y>
<width>341</width>
- <height>273</height>
+ <height>323</height>
</rect>
</property>
<property name="windowTitle" >
@@ -163,7 +163,7 @@
<number>9</number>
</property>
<property name="spacing" >
- <number>9</number>
+ <number>6</number>
</property>
<item>
<layout class="QHBoxLayout" >
@@ -207,6 +207,43 @@
</property>
</widget>
</item>
+ <item>
+ <layout class="QHBoxLayout" >
+ <property name="margin" >
+ <number>0</number>
+ </property>
+ <property name="spacing" >
+ <number>6</number>
+ </property>
+ <item>
+ <spacer>
+ <property name="orientation" >
+ <enum>Qt::Horizontal</enum>
+ </property>
+ <property name="sizeHint" >
+ <size>
+ <width>40</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ </item>
+ <item>
+ <widget class="QPushButton" name="exportButton" >
+ <property name="text" >
+ <string>Export Keymap</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QPushButton" name="printButton" >
+ <property name="text" >
+ <string>Print Keymap</string>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </item>
</layout>
</widget>
</item>
Index: traverso/ui/PerformanceConfigPage.ui
===================================================================
RCS file: /sources/traverso/traverso/src/traverso/ui/PerformanceConfigPage.ui,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- traverso/ui/PerformanceConfigPage.ui 24 Apr 2007 19:55:08 -0000
1.2
+++ traverso/ui/PerformanceConfigPage.ui 11 Oct 2007 13:01:55 -0000
1.3
@@ -5,8 +5,8 @@
<rect>
<x>0</x>
<y>0</y>
- <width>247</width>
- <height>94</height>
+ <width>343</width>
+ <height>232</height>
</rect>
</property>
<property name="windowTitle" >
@@ -20,6 +20,124 @@
<number>6</number>
</property>
<item>
+ <widget class="QGroupBox" name="groupBox_2" >
+ <property name="title" >
+ <string>Audio file buffering</string>
+ </property>
+ <layout class="QVBoxLayout" >
+ <property name="margin" >
+ <number>9</number>
+ </property>
+ <property name="spacing" >
+ <number>12</number>
+ </property>
+ <item>
+ <layout class="QHBoxLayout" >
+ <property name="margin" >
+ <number>0</number>
+ </property>
+ <property name="spacing" >
+ <number>6</number>
+ </property>
+ <item>
+ <widget class="QLabel" name="label" >
+ <property name="toolTip" >
+ <string><html><head><meta name="qrichtext" content="1"
/><style type="text/css">
+p, li { white-space: pre-wrap; }
+</style></head><body style=" font-family:'Sans Serif'; font-size:9pt;
font-weight:400; font-style:normal; text-decoration:none;">
+<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;">Read buffer size:</span></p>
+<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;">The amount of audio
data that can be stored in the </p>
+<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;">read buffers in
seconds.</p>
+<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>
+<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;">The default value of 1
second should do just fine.</p>
+<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;">However, if you're
tight on memory, you can make this value lower.</p>
+<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;">If you experience
buffer underruns when the hard disk bandwidth is </p>
+<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;">(almost) saturated, or
when buffer underruns happen regularly due </p>
+<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;">the hard disk can't
keep up for some reason, you can try a larger </p>
+<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;">value, like 1.5 or 2.0
seconds.</p>
+<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>
+<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;">Keep in mind that when
using a larger buffer, </p>
+<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;">it will take
considerably more time to move (i.e. seeking) </p>
+<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;">the playhead to another
positions, since all the buffers </p>
+<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
margin-right:0px; -qt-block-indent:0; text-indent:0px;">(one for each audioclip
* channel count) need to be refilled!</p></body></html></string>
+ </property>
+ <property name="text" >
+ <string>Read buffer size (seconds)</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QDoubleSpinBox" name="bufferTimeSpinBox" >
+ <property name="sizePolicy" >
+ <sizepolicy>
+ <hsizetype>1</hsizetype>
+ <vsizetype>0</vsizetype>
+ <horstretch>0</horstretch>
+ <verstretch>1</verstretch>
+ </sizepolicy>
+ </property>
+ <property name="decimals" >
+ <number>1</number>
+ </property>
+ <property name="maximum" >
+ <double>3.000000000000000</double>
+ </property>
+ <property name="minimum" >
+ <double>0.400000000000000</double>
+ </property>
+ <property name="singleStep" >
+ <double>0.100000000000000</double>
+ </property>
+ <property name="value" >
+ <double>1.000000000000000</double>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </item>
+ <item>
+ <layout class="QHBoxLayout" >
+ <property name="margin" >
+ <number>0</number>
+ </property>
+ <property name="spacing" >
+ <number>6</number>
+ </property>
+ <item>
+ <widget class="QLabel" name="reloadWarningLabel" >
+ <property name="minimumSize" >
+ <size>
+ <width>40</width>
+ <height>0</height>
+ </size>
+ </property>
+ <property name="text" >
+ <string>info icon</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QLabel" name="label_2" >
+ <property name="sizePolicy" >
+ <sizepolicy>
+ <hsizetype>5</hsizetype>
+ <vsizetype>5</vsizetype>
+ <horstretch>1</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ <property name="text" >
+ <string>Changing the buffer size only will take
+into effect after (re)loading a project.</string>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </item>
+ </layout>
+ </widget>
+ </item>
+ <item>
<widget class="QGroupBox" name="groupBox" >
<property name="title" >
<string>Painting</string>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Traverso-commit] traverso/src core/AudioClip.cpp core/Project.cp...,
Remon Sijrier <=