-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
164 additions
and
8 deletions.
There are no files selected for viewing
Submodule talcs
updated
3 files
+1 −2 | src/device/built-in/SDLAudioDevice.cpp | |
+9 −4 | src/gui/WaveformPainter.cpp | |
+1 −1 | tests/InteractiveTests/WaveformPainter/main.cpp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
58 changes: 58 additions & 0 deletions
58
src/plugins/audioplugin/internal/settings/audioexportpage.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
#include "audioexportpage.h" | ||
|
||
#include <QCheckBox> | ||
#include <QFormLayout> | ||
#include <QThread> | ||
#include <QLabel> | ||
|
||
#include <SVSCraftWidgets/expressionspinbox.h> | ||
|
||
namespace Audio::Internal { | ||
|
||
class AudioExportPageWidget : public QWidget { | ||
public: | ||
explicit AudioExportPageWidget(QWidget *parent = nullptr) : QWidget(parent) { | ||
auto mainLayout = new QFormLayout; | ||
auto enableClippingCheckCheckBox = new QCheckBox(tr("Enable &clipping check")); | ||
mainLayout->addRow(enableClippingCheckCheckBox); | ||
auto threadLayout = new QVBoxLayout; | ||
auto threadCountSpinBox = new SVS::ExpressionSpinBox; | ||
threadCountSpinBox->setRange(1, QThread::idealThreadCount()); | ||
threadLayout->addWidget(threadCountSpinBox); | ||
auto multiThreadLabel = new QLabel(tr("Audio exporting will be multi-threaded when the mixing option is \"separated\".")); | ||
multiThreadLabel->setWordWrap(true); | ||
threadLayout->addWidget(multiThreadLabel); | ||
auto threadLayoutLabel = new QLabel(tr("Number of &threads for exporting")); | ||
threadLayoutLabel->setBuddy(threadCountSpinBox); | ||
mainLayout->addRow(threadLayoutLabel, threadLayout); | ||
setLayout(mainLayout); | ||
} | ||
|
||
void accept() { | ||
|
||
} | ||
}; | ||
|
||
AudioExportPage::AudioExportPage(QObject *parent) : Core::ISettingPage("audio.AudioExport", parent) { | ||
setTitle([] { return tr("Audio Export"); }); | ||
setDescription([] { return tr("Configure audio export preferences."); }); | ||
} | ||
|
||
AudioExportPage::~AudioExportPage() = default; | ||
|
||
QString AudioExportPage::sortKeyword() const { | ||
return QStringLiteral("AudioExport"); | ||
} | ||
|
||
QWidget *AudioExportPage::widget() { | ||
if (m_widget) | ||
return m_widget; | ||
return m_widget = new AudioExportPageWidget; | ||
} | ||
bool AudioExportPage::accept() { | ||
m_widget->accept(); | ||
return true; | ||
} | ||
void AudioExportPage::finish() { | ||
} | ||
} |
31 changes: 31 additions & 0 deletions
31
src/plugins/audioplugin/internal/settings/audioexportpage.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#ifndef AUDIO_AUDIOEXPORTPAGE_H | ||
#define AUDIO_AUDIOEXPORTPAGE_H | ||
|
||
#include <QPointer> | ||
|
||
#include <CoreApi/isettingpage.h> | ||
|
||
namespace Audio::Internal { | ||
|
||
class AudioExportPageWidget; | ||
|
||
class AudioExportPage : public Core::ISettingPage { | ||
Q_OBJECT | ||
public: | ||
explicit AudioExportPage(QObject *parent = nullptr); | ||
~AudioExportPage() override; | ||
|
||
QString sortKeyword() const override; | ||
|
||
QWidget *widget() override; | ||
|
||
bool accept() override; | ||
void finish() override; | ||
|
||
private: | ||
QPointer<AudioExportPageWidget> m_widget; | ||
}; | ||
|
||
} | ||
|
||
#endif // AUDIO_AUDIOEXPORTPAGE_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters