Fixed waves path for linux
This commit is contained in:
@@ -62,7 +62,12 @@ String JaySynthAudioProcessor::wavesGetPath()
|
|||||||
bool isExistent, isValid;
|
bool isExistent, isValid;
|
||||||
|
|
||||||
File pluginfile = File::getSpecialLocation (File::currentExecutableFile).getParentDirectory();
|
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");
|
String wavespath = pluginfile.getFullPathName() + String("\\waves.bin");
|
||||||
|
#endif
|
||||||
File wavesfile = File(wavespath);
|
File wavesfile = File(wavespath);
|
||||||
|
|
||||||
isExistent = wavesfile.existsAsFile();
|
isExistent = wavesfile.existsAsFile();
|
||||||
@@ -695,7 +700,7 @@ void JaySynthAudioProcessor::getStateInformation (MemoryBlock& destData)
|
|||||||
ScopedPointer<XmlElement>xml = new XmlElement("JSYNTH_BANK");
|
ScopedPointer<XmlElement>xml = new XmlElement("JSYNTH_BANK");
|
||||||
|
|
||||||
MemoryOutputStream outputStream(destData, false);
|
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);
|
GZIPCompressorOutputStream GZIPEnc(&outputStream, /*compressionLevel*/0, /*deleteDestStreamWhenDestroyed*/false, /*windowBits*/0);
|
||||||
|
|
||||||
if (isPatchModified() || midCC_editBuffer.isMidiCCmodified())
|
if (isPatchModified() || midCC_editBuffer.isMidiCCmodified())
|
||||||
@@ -729,10 +734,10 @@ void JaySynthAudioProcessor::getStateInformation (MemoryBlock& destData)
|
|||||||
GZIPEnc.write(tmpBlock.getData(), tmpBlock.getSize());
|
GZIPEnc.write(tmpBlock.getData(), tmpBlock.getSize());
|
||||||
outputStream.flush();
|
outputStream.flush();
|
||||||
|
|
||||||
#if 0
|
#if 1
|
||||||
//#ifdef SYNTH_DEBUG
|
|
||||||
{
|
{
|
||||||
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();
|
file.create();
|
||||||
xml->writeToFile (/*const File &destinationFile*/file, /*const String &dtdToUse*/"JSYNTH_BANK_FILE" /*, const String &encodingType="UTF-8", int lineWrapLength=60*/);
|
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