~ubuntu-branches/debian/stretch/synthv1/stretch

« back to all changes in this revision

Viewing changes to src/synthv1widget_lv2.cpp

  • Committer: Package Import Robot
  • Author(s): Jaromír Mikeš
  • Date: 2014-03-11 15:08:33 UTC
  • mto: This revision was merged to the branch mainline in revision 12.
  • Revision ID: package-import@ubuntu.com-20140311150833-fyut2mpa6x6sr5uw
Tags: upstream-0.4.0
Import upstream version 0.4.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
// synthv1widget_lv2.cpp
2
2
//
3
3
/****************************************************************************
4
 
   Copyright (C) 2012-2013, rncbc aka Rui Nuno Capela. All rights reserved.
 
4
   Copyright (C) 2012-2014, rncbc aka Rui Nuno Capela. All rights reserved.
5
5
 
6
6
   This program is free software; you can redistribute it and/or
7
7
   modify it under the terms of the GNU General Public License
45
45
#ifdef CONFIG_LV2_EXTERNAL_UI
46
46
        m_external_host = NULL;
47
47
#endif
48
 
        
 
48
 
 
49
        for (uint32_t i = 0; i < synthv1::NUM_PARAMS; ++i)
 
50
                m_params_def[i] = true;
 
51
 
49
52
        clearPreset();
50
53
}
51
54
 
97
100
                if (index == synthv1::DEL1_BPM && fValue < 3.6f)
98
101
                        fValue *= 100.0f;
99
102
        //--legacy support < 0.3.0.4 -- end.
100
 
                setParamValue(index, fValue);
 
103
                setParamValue(index, fValue, m_params_def[index]);
 
104
                m_params_def[index] = false;
101
105
        }
102
106
}
103
107
 
228
232
        if (qApp == NULL && pExtWidget->app_instance == NULL) {
229
233
                static int s_argc = 1;
230
234
                static const char *s_argv[] = { __func__, NULL };
231
 
                pExtWidget->app_instance = new QApplication(s_argc, (char **) s_argv);
 
235
                pExtWidget->app_instance = new QApplication(s_argc, (char **) s_argv, true);
232
236
        }
233
237
        pExtWidget->app_refcount++;
234
238