Fixed waves path for linux
This commit is contained in:
@@ -62,7 +62,12 @@ String JaySynthAudioProcessor::wavesGetPath()
|
||||
bool isExistent, isValid;
|
||||
|
||||
File pluginfile = File::getSpecialLocation (File::currentExecutableFile).getParentDirectory();
|
||||
#if LINUX
|
||||
String wavespath = pluginfile.getFullPathName() + String("/waves.bin");
|
||||
#else
|
||||
// that'S probably windows
|
||||
String wavespath = pluginfile.getFullPathName() + String("\\waves.bin");
|
||||
#endif
|
||||
File wavesfile = File(wavespath);
|
||||
|
||||
isExistent = wavesfile.existsAsFile();
|
||||
@@ -695,7 +700,7 @@ void JaySynthAudioProcessor::getStateInformation (MemoryBlock& destData)
|
||||
ScopedPointer<XmlElement>xml = new XmlElement("JSYNTH_BANK");
|
||||
|
||||
MemoryOutputStream outputStream(destData, false);
|
||||
MemoryBlock tmpBlock(8192*1024, /*initialiseToZero*/true);
|
||||
MemoryBlock tmpBlock(destData.getSize(), /*initialiseToZero*/true);
|
||||
GZIPCompressorOutputStream GZIPEnc(&outputStream, /*compressionLevel*/0, /*deleteDestStreamWhenDestroyed*/false, /*windowBits*/0);
|
||||
|
||||
if (isPatchModified() || midCC_editBuffer.isMidiCCmodified())
|
||||
@@ -729,10 +734,10 @@ void JaySynthAudioProcessor::getStateInformation (MemoryBlock& destData)
|
||||
GZIPEnc.write(tmpBlock.getData(), tmpBlock.getSize());
|
||||
outputStream.flush();
|
||||
|
||||
#if 0
|
||||
//#ifdef SYNTH_DEBUG
|
||||
#if 1
|
||||
{
|
||||
File file(String("C:\\Users\\jens\\JaySynth\\bank.xml"));
|
||||
File pluginfile = File::getSpecialLocation (File::currentExecutableFile).getParentDirectory();
|
||||
File file(pluginfile.getFullPathName() + String("/bank.xml"));
|
||||
file.create();
|
||||
xml->writeToFile (/*const File &destinationFile*/file, /*const String &dtdToUse*/"JSYNTH_BANK_FILE" /*, const String &encodingType="UTF-8", int lineWrapLength=60*/);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user