Subject: Patch for using vConnect in Unix
Author: Tobias Platen <tobias@platen-software.de>
Last-Update: 2015-05-12
Index: cadencii-3.3.9+svn20110818.r1732/Cadencii/VConnectWaveGenerator.cs
===================================================================
--- cadencii-3.3.9+svn20110818.r1732.orig/Cadencii/VConnectWaveGenerator.cs
+++ cadencii-3.3.9+svn20110818.r1732/Cadencii/VConnectWaveGenerator.cs
@@ -48,7 +48,7 @@ namespace org.kbinani.cadencii
         /// <summary>
         /// シンセサイザの実行ファイル名
         /// </summary>
-        public const String STRAIGHT_SYNTH = "vConnect-STAND.exe";
+        public const String STRAIGHT_SYNTH = fsys.combine( fsys.combine("usr", "bin"), "vconnect_stand");
 
         private const int BUFLEN = 1024;
         private const int VERSION = 0;
@@ -236,7 +236,7 @@ namespace org.kbinani.cadencii
             //mAbortRequired = false;
             double[] bufL = new double[BUFLEN];
             double[] bufR = new double[BUFLEN];
-            String straight_synth = fsys.combine( PortUtil.getApplicationStartupPath(), STRAIGHT_SYNTH );
+            String straight_synth = STRAIGHT_SYNTH;
             if ( !fsys.isFileExists( straight_synth ) ) {
 #if DEBUG
                 sout.println( "VConnectWaveGenerator#begin; \"" + straight_synth + "\" does not exists" );
