commit 75b8a7a63c4abfc69c164fcc45519a359125e34b
parent 3a3414fa9326343e25fe3a7ceb8cc4cca73e8fa4
Author: paulnasca <paulnasca>
Date: Fri, 8 Apr 2005 20:34:59 +0000
*** empty log message ***
Diffstat:
5 files changed, 25 insertions(+), 11 deletions(-)
diff --git a/ChangeLog b/ChangeLog
@@ -785,5 +785,7 @@
- Adaugat parametrul '-Y' la linia de comanda, care este folosit doar pentru installerul NSIS (parametrul este necesar pentru ca NSIS ma forteaza sa dau un parametru la program pentru ca sa adauge un icon la shortcut; zynaddsubfx ignora acest parametru)
07 Apr 2005 - Pregatit pentru release
08 Apr 2005 - Corectata o mica eroare care facea ca sa nu se incarce configul la inceput
+ - LANSAT PE INTERNET - VERSIUNEA (2.2.0)
+--------------------------------------------------------------------------------------------------
\ No newline at end of file
diff --git a/ZynAddSubFX.lsm b/ZynAddSubFX.lsm
@@ -1,7 +1,7 @@
Begin4
Title: ZynAddSubFX
-Version: 2.1.1
-Entered-date: 02-10-2004
+Version: 2.2.0
+Entered-date: 08-04-2005
Description: A real-time software synthesizer for Linux and Windows with many
features, including polyphony, multi-timbral and microtonal
capabilities. It includes randomness of some parameters,which
@@ -14,7 +14,7 @@ Author: zynaddsubfx@yahoo.com (Nasca Paul)
Maintained-by: zynaddsubfx@yahoo.com (Nasca Paul)
Primary-site: zynaddsubfx.sourceforge.net
sourceforge.net/projects/zynaddsubfx
- 640k ZynAddSubFX-2.0.0pre1.tar.gz (source code)
+ 920k ZynAddSubFX-2.2.0.tar.bz2 (source code)
Alternate-site:
Original-site:
Platforms: Linux with X11 or Windows
diff --git a/src/Misc/Config.C b/src/Misc/Config.C
@@ -76,6 +76,7 @@ void Config::init(){
for (int j=0;j<MAX_STRING_SIZE;j++) winmididevices[i].name[j]='\0';
};
+
//get the midi input devices name
#ifdef WINMIDIIN
MIDIINCAPS midiincaps;
@@ -93,6 +94,7 @@ void Config::init(){
char filename[MAX_STRING_SIZE];
getConfigFileName(filename,MAX_STRING_SIZE);
readConfig(filename);
+
if (cfg.bankRootDirList[0]==NULL){
#if defined(OS_LINUX)
//banks
@@ -171,9 +173,6 @@ void Config::init(){
};
Config::~Config(){
- char filename[MAX_STRING_SIZE];
- getConfigFileName(filename,MAX_STRING_SIZE);
- saveConfig(filename);
delete(cfg.LinuxOSSWaveOutDev);
delete(cfg.LinuxOSSSeqInDev);
@@ -183,6 +182,13 @@ Config::~Config(){
delete(winmididevices);
};
+
+void Config::save(){
+ char filename[MAX_STRING_SIZE];
+ getConfigFileName(filename,MAX_STRING_SIZE);
+ saveConfig(filename);
+};
+
void Config::clearbankrootdirlist(){
for (int i=0;i<MAX_BANK_ROOT_DIRS;i++) {
if (cfg.bankRootDirList[i]==NULL) delete(cfg.bankRootDirList[i]);
diff --git a/src/Misc/Config.h b/src/Misc/Config.h
@@ -56,6 +56,7 @@ class Config{
void clearbankrootdirlist();
void clearpresetsdirlist();
void init();
+ void save();
private:
void readConfig(char *filename);
diff --git a/src/UI/MasterUI.fl b/src/UI/MasterUI.fl
@@ -174,8 +174,7 @@ if ((maxdbl>MIN_DB-20)){
if ((maxdbr>MIN_DB-20)){
snprintf((char *)&tmpstr,10,"%ddB",(int)maxdbl);
fl_draw(tmpstr,ox+VULENX+1,oy+ly/2+1,lx-VULENX-1,VULENY,FL_ALIGN_RIGHT,NULL,0);
-};} {selected
- }
+};} {}
}
Function {draw_part()} {} {
code {\#define MIN_DB (-48)
@@ -421,8 +420,11 @@ class MasterUI {} {
callback {\#ifdef VSTAUDIOOUT
fl_alert("ZynAddSubFX could not be closed this way, because it's a VST plugin. Please use the host aplication to close it.");
\#else
-if (fl_ask("Exit and leave the unsaved data?")) *exitprogram=1;
-\#endif}
+if (fl_ask("Exit and leave the unsaved data?")) {
+ config.save();
+ *exitprogram=1;
+};
+\#endif} selected
xywh {353 127 390 465} type Double hide
} {
Fl_Menu_Bar mastermenu {
@@ -1073,7 +1075,10 @@ updatepanel();}
callback {\#ifdef VSTAUDIOOUT
fl_alert("ZynAddSubFX could not be closed this way, because it's a VST plugin. Please use the host aplication to close it.");
\#else
-if (fl_ask("Exit and leave the unsaved data?")) *exitprogram=1;
+if (fl_ask("Exit and leave the unsaved data?")) {
+ config.save();
+ *exitprogram=1;
+};
\#endif}
xywh {135 383 600 335} type Double hide
} {