View
-
+
Глобальная прокрутка
-
+
Глобальный масштаб
-
+
Следовать за воспроизведением
-
+
Прокручивать
-
+
Постранично
-
+
Выключить
-
+
<неизвестно>
-
+
-
+
Ожидание готовности слоёв...
-
-
+
+
Отменить
-
+
Отрисовывается изображение...
-
+
Выравнивание
diff -r ecb946764afe -r 0ef711a400a2 main/MainWindow.cpp
--- a/main/MainWindow.cpp Wed Feb 03 16:51:37 2016 +0000
+++ b/main/MainWindow.cpp Mon Jun 13 12:46:36 2016 +0100
@@ -69,6 +69,7 @@
#include "data/fileio/FileSource.h"
#include "data/midi/MIDIInput.h"
#include "base/RecentFiles.h"
+#include "plugin/PluginScan.h"
#include "transform/TransformFactory.h"
#include "transform/ModelTransformerFactory.h"
#include "base/PlayParameterRepository.h"
@@ -330,8 +331,10 @@
m_versionTester = 0;
}
- QString warning = TransformFactory::getInstance()->getPluginPopulationWarning();
- if (warning != "") pluginPopulationWarning(warning);
+ QString warning = PluginScan::getInstance()->getStartupFailureReport();
+ if (warning != "") {
+ QTimer::singleShot(500, this, SLOT(pluginPopulationWarning()));
+ }
}
MainWindow::~MainWindow()
@@ -4141,8 +4144,9 @@
}
void
-MainWindow::pluginPopulationWarning(QString warning)
+MainWindow::pluginPopulationWarning()
{
+ QString warning = PluginScan::getInstance()->getStartupFailureReport();
QMessageBox::warning(this, tr("Problems loading plugins"), warning);
}
@@ -4432,15 +4436,13 @@
}
void
-MainWindow::alignmentFailed(QString transformName, QString message)
+MainWindow::alignmentFailed(QString message)
{
- emit hideSplash();
-
QMessageBox::warning
(this,
tr("Failed to calculate alignment"),
- tr("Alignment calculation failedFailed to calculate an audio alignment using transform \"%1\":
%2")
- .arg(transformName).arg(message),
+ tr("Alignment calculation failed
Failed to calculate an audio alignment:
%1")
+ .arg(message),
QMessageBox::Ok);
}
@@ -4574,7 +4576,7 @@
aboutText += "";
- aboutText += tr("With Qt v%1 © Nokia Corporation").arg(QT_VERSION_STR);
+ aboutText += tr("With Qt v%1 © The Qt Company").arg(QT_VERSION_STR);
#ifdef HAVE_JACK
#ifdef JACK_VERSION
diff -r ecb946764afe -r 0ef711a400a2 main/MainWindow.h
--- a/main/MainWindow.h Wed Feb 03 16:51:37 2016 +0000
+++ b/main/MainWindow.h Mon Jun 13 12:46:36 2016 +0100
@@ -93,7 +93,7 @@
virtual void modelGenerationWarning(QString, QString);
virtual void modelRegenerationFailed(QString, QString, QString);
virtual void modelRegenerationWarning(QString, QString, QString);
- virtual void alignmentFailed(QString, QString);
+ virtual void alignmentFailed(QString);
virtual void rightButtonMenuRequested(Pane *, QPoint point);
@@ -147,7 +147,7 @@
virtual void midiEventsAvailable();
virtual void playStatusChanged(bool);
- virtual void pluginPopulationWarning(QString);
+ virtual void pluginPopulationWarning();
virtual void saveSessionAsTemplate();
virtual void manageSavedTemplates();
diff -r ecb946764afe -r 0ef711a400a2 main/main.cpp
--- a/main/main.cpp Wed Feb 03 16:51:37 2016 +0000
+++ b/main/main.cpp Mon Jun 13 12:46:36 2016 +0100
@@ -26,6 +26,7 @@
#include "widgets/InteractiveFileFinder.h"
#include "svapp/framework/TransformUserConfigurator.h"
#include "transform/TransformFactory.h"
+#include "svcore/plugin/PluginScan.h"
#include
#include
@@ -332,6 +333,28 @@
StoreStartupLocale();
+ // Make known-plugins query as early as possible after showing
+ // splash screen. This depends on our helper executable, which
+ // must exist either in the same directory as this one or
+ // (preferably) a subdirectory called "checker".
+ QString myDir = application.applicationDirPath();
+ QString helperPath = myDir + "/checker/plugin-checker-helper";
+ QString helperSuffix = "";
+#ifdef _WIN32
+ helperSuffix = ".exe";
+#endif
+ if (!QFile(helperPath + helperSuffix).exists()) {
+ cerr << "NOTE: helper not found at " << (helperPath + helperSuffix)
+ << ", trying in my own directory" << endl;
+ helperPath = myDir + "/plugin-checker-helper";
+ }
+ helperPath += helperSuffix;
+ if (!QFile(helperPath + helperSuffix).exists()) {
+ cerr << "NOTE: helper not found at " << (helperPath + helperSuffix)
+ << endl;
+ }
+ PluginScan::getInstance()->scan(helperPath);
+
// Permit size_t and PropertyName to be used as args in queued signal calls
qRegisterMetaType("PropertyContainer::PropertyName");
diff -r ecb946764afe -r 0ef711a400a2 sonic-visualiser.pro
--- a/sonic-visualiser.pro Wed Feb 03 16:51:37 2016 +0000
+++ b/sonic-visualiser.pro Mon Jun 13 12:46:36 2016 +0100
@@ -1,5 +1,5 @@
TEMPLATE = subdirs
-SUBDIRS = sub_bq sub_dataquay svcore svgui svapp sub_sv
+SUBDIRS = sub_bq sub_dataquay svcore svgui svapp checker sub_sv
!win* {
# We should build and run the tests on any platform,
diff -r ecb946764afe -r 0ef711a400a2 sv.pro
--- a/sv.pro Wed Feb 03 16:51:37 2016 +0000
+++ b/sv.pro Mon Jun 13 12:46:36 2016 +0100
@@ -1,6 +1,8 @@
TEMPLATE = app
+INCLUDEPATH += vamp-plugin-sdk
+
win32-g++ {
INCLUDEPATH += sv-dependency-builds/win32-mingw/include
LIBS += -Lrelease -Lsv-dependency-builds/win32-mingw/lib
@@ -25,9 +27,10 @@
DEFINES += HAVE_BZ2 HAVE_FFTW3 HAVE_FFTW3F HAVE_SNDFILE HAVE_SAMPLERATE HAVE_VAMP HAVE_VAMPHOSTSDK HAVE_RUBBERBAND HAVE_DATAQUAY HAVE_LIBLO HAVE_MAD HAVE_ID3TAG HAVE_PORTAUDIO
- LIBS += -lbz2 -lrubberband -lvamp-hostsdk -lfftw3 -lfftw3f -lsndfile -lFLAC -logg -lvorbis -lvorbisenc -lvorbisfile -logg -lmad -lid3tag -lportaudio -lsamplerate -lz -lsord-0 -lserd-0 -llo
+ LIBS += -lbz2 -lrubberband -lfftw3 -lfftw3f -lsndfile -lFLAC -logg -lvorbis -lvorbisenc -lvorbisfile -logg -lmad -lid3tag -lportaudio -lsamplerate -lz -lsord-0 -lserd-0 -llo
win* {
+ DEFINES += _USE_MATH_DEFINES
LIBS += -lwinmm -lws2_32
}
macx* {
@@ -56,15 +59,15 @@
contains(DEFINES, BUILD_STATIC):LIBS -= -ljack
-MY_LIBS = -Lsvapp -Lsvgui -Lsvcore -Ldataquay -L. \
- -lsvapp -lsvgui -lsvcore -ldataquay -lbq
+MY_LIBS = -Lsvapp -Lsvgui -Lsvcore -Lchecker -Ldataquay -L. \
+ -lsvapp -lsvgui -lsvcore -lchecker -ldataquay -lbq
linux* {
MY_LIBS = -Wl,-Bstatic $$MY_LIBS -Wl,-Bdynamic
}
win* {
-MY_LIBS = -Lsvapp/release -Lsvgui/release -Lsvcore/release -Ldataquay/release $$MY_LIBS
+MY_LIBS = -Lsvapp/release -Lsvgui/release -Lsvcore/release -Lchecker/release -Ldataquay/release $$MY_LIBS
}
LIBS = $$MY_LIBS $$LIBS
@@ -73,29 +76,53 @@
PRE_TARGETDEPS += svapp/release/libsvapp.a \
svgui/release/libsvgui.a \
svcore/release/libsvcore.a \
- dataquay/release/libdataquay.a
+ dataquay/release/libdataquay.a \
+ checker/release/libchecker.a
}
!win* {
PRE_TARGETDEPS += svapp/libsvapp.a \
svgui/libsvgui.a \
svcore/libsvcore.a \
- dataquay/libdataquay.a
+ dataquay/libdataquay.a \
+ checker/libchecker.a
}
RESOURCES += sonic-visualiser.qrc
-HEADERS += main/MainWindow.h \
- main/NetworkPermissionTester.h \
- main/Surveyer.h \
- main/SVSplash.h \
- main/PreferencesDialog.h
-SOURCES += main/main.cpp \
- main/OSCHandler.cpp \
- main/MainWindow.cpp \
- main/NetworkPermissionTester.cpp \
- main/Surveyer.cpp \
- main/SVSplash.cpp \
- main/PreferencesDialog.cpp
+HEADERS += \
+ vamp-plugin-sdk/vamp-hostsdk/PluginBase.h \
+ vamp-plugin-sdk/vamp-hostsdk/PluginBufferingAdapter.h \
+ vamp-plugin-sdk/vamp-hostsdk/PluginChannelAdapter.h \
+ vamp-plugin-sdk/vamp-hostsdk/Plugin.h \
+ vamp-plugin-sdk/vamp-hostsdk/PluginHostAdapter.h \
+ vamp-plugin-sdk/vamp-hostsdk/PluginInputDomainAdapter.h \
+ vamp-plugin-sdk/vamp-hostsdk/PluginLoader.h \
+ vamp-plugin-sdk/vamp-hostsdk/PluginSummarisingAdapter.h \
+ vamp-plugin-sdk/vamp-hostsdk/PluginWrapper.h \
+ vamp-plugin-sdk/vamp-hostsdk/RealTime.h \
+ vamp-plugin-sdk/src/vamp-hostsdk/Window.h \
+ main/MainWindow.h \
+ main/NetworkPermissionTester.h \
+ main/Surveyer.h \
+ main/SVSplash.h \
+ main/PreferencesDialog.h
+SOURCES += \
+ vamp-plugin-sdk/src/vamp-hostsdk/PluginBufferingAdapter.cpp \
+ vamp-plugin-sdk/src/vamp-hostsdk/PluginChannelAdapter.cpp \
+ vamp-plugin-sdk/src/vamp-hostsdk/PluginHostAdapter.cpp \
+ vamp-plugin-sdk/src/vamp-hostsdk/PluginInputDomainAdapter.cpp \
+ vamp-plugin-sdk/src/vamp-hostsdk/PluginLoader.cpp \
+ vamp-plugin-sdk/src/vamp-hostsdk/PluginSummarisingAdapter.cpp \
+ vamp-plugin-sdk/src/vamp-hostsdk/PluginWrapper.cpp \
+ vamp-plugin-sdk/src/vamp-hostsdk/RealTime.cpp \
+ vamp-plugin-sdk/src/vamp-hostsdk/Files.cpp \
+ main/main.cpp \
+ main/OSCHandler.cpp \
+ main/MainWindow.cpp \
+ main/NetworkPermissionTester.cpp \
+ main/Surveyer.cpp \
+ main/SVSplash.cpp \
+ main/PreferencesDialog.cpp
# for mac integration
QMAKE_INFO_PLIST = deploy/osx/Info.plist
diff -r ecb946764afe -r 0ef711a400a2 version.h
--- a/version.h Wed Feb 03 16:51:37 2016 +0000
+++ b/version.h Mon Jun 13 12:46:36 2016 +0100
@@ -1,1 +1,1 @@
-#define SV_VERSION "2.5"
+#define SV_VERSION "3.0"