MSVC: Fix Xpressive instrument
This commit is contained in:
@@ -93,7 +93,6 @@ IF(MSVC)
|
||||
LadspaEffect
|
||||
sid
|
||||
#VstEffect
|
||||
Xpressive
|
||||
zynaddsubfx
|
||||
)
|
||||
message(WARNING "Compiling with MSVC. The following plugins are not available: ${MSVC_INCOMPATIBLE_PLUGINS}")
|
||||
|
||||
@@ -12,6 +12,8 @@ SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${WERROR_FLAGS} -fexceptions")
|
||||
|
||||
IF(LMMS_BUILD_WIN32 AND NOT MSVC)
|
||||
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wa,-mbig-obj -Dexprtk_disable_enhanced_features")
|
||||
ELSEIF(LMMS_BUILD_WIN32 AND MSVC)
|
||||
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /bigobj")
|
||||
ENDIF()
|
||||
|
||||
BUILD_PLUGIN(xpressive
|
||||
|
||||
@@ -807,8 +807,6 @@ void XpressiveView::usrWaveClicked() {
|
||||
Engine::getSong()->setModified();
|
||||
}
|
||||
|
||||
XpressiveHelpView* XpressiveHelpView::s_instance=0;
|
||||
|
||||
QString XpressiveHelpView::s_helpText=
|
||||
"<b>O1, O2</b> - Two output waves. Panning is controled by PN1 and PN2.<br>"
|
||||
"<b>W1, W2, W3</b> - Wave samples evaluated by expression. In these samples, t variable ranges [0,1).<br>"
|
||||
@@ -876,11 +874,6 @@ void XpressiveView::helpClicked() {
|
||||
|
||||
}
|
||||
|
||||
__attribute__((destructor)) static void module_destroy()
|
||||
{
|
||||
XpressiveHelpView::finalize();
|
||||
}
|
||||
|
||||
extern "C" {
|
||||
|
||||
// necessary for getting instance out of shared lib
|
||||
|
||||
@@ -206,22 +206,16 @@ class XpressiveHelpView: public QTextEdit
|
||||
public:
|
||||
static XpressiveHelpView* getInstance()
|
||||
{
|
||||
if (!s_instance)
|
||||
{
|
||||
s_instance = new XpressiveHelpView();
|
||||
}
|
||||
return s_instance;
|
||||
static XpressiveHelpView instance;
|
||||
return &instance;
|
||||
}
|
||||
static void finalize()
|
||||
{
|
||||
if (s_instance) { delete s_instance; }
|
||||
}
|
||||
|
||||
private:
|
||||
XpressiveHelpView();
|
||||
static XpressiveHelpView *s_instance;
|
||||
static QString s_helpText;
|
||||
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user