1 |
/*************************************************************************** |
/*************************************************************************** |
2 |
* * |
* * |
3 |
* Copyright (C) 2008 - 2009 Andreas Persson * |
* Copyright (C) 2008 - 2010 Andreas Persson * |
4 |
* * |
* * |
5 |
* This program is free software; you can redistribute it and/or modify * |
* This program is free software; you can redistribute it and/or modify * |
6 |
* it under the terms of the GNU General Public License as published by * |
* it under the terms of the GNU General Public License as published by * |
97 |
ProcessHandle = INVALID_HANDLE_VALUE; |
ProcessHandle = INVALID_HANDLE_VALUE; |
98 |
} |
} |
99 |
|
|
100 |
// assume Fantasia is in the same directory as the |
// assume Fantasia is in the same directory or one directory above |
101 |
// liblinuxsampler dll |
// the liblinuxsampler dll |
102 |
String lspath = LinuxSampler::Sampler::GetInstallDir(); |
String lspath = LinuxSampler::Sampler::GetInstallDir(); |
103 |
if (!lspath.empty()) { |
if (!lspath.empty()) { |
104 |
lspath += "\\"; |
lspath += "\\"; |
105 |
WIN32_FIND_DATA fd; |
WIN32_FIND_DATA fd; |
106 |
HANDLE hFind = FindFirstFile((lspath + "Fantasia*.jar").c_str(), &fd); |
HANDLE hFind = FindFirstFile((lspath + "Fantasia*.jar").c_str(), &fd); |
107 |
|
if (hFind == INVALID_HANDLE_VALUE) { |
108 |
|
lspath += "..\\"; |
109 |
|
hFind = FindFirstFile((lspath + "Fantasia*.jar").c_str(), &fd); |
110 |
|
} |
111 |
if (hFind != INVALID_HANDLE_VALUE) { |
if (hFind != INVALID_HANDLE_VALUE) { |
112 |
String fantasia(fd.cFileName); |
String fantasia(fd.cFileName); |
113 |
FindClose(hFind); |
FindClose(hFind); |
189 |
InitState(); |
InitState(); |
190 |
} |
} |
191 |
} else { |
} else { |
192 |
Init(int(sampleRate), blockSize); |
Init(int(sampleRate), blockSize, CHANNELS); |
193 |
} |
} |
194 |
|
AudioEffectX::resume(); |
195 |
dmsg(2, ("<--resume\n")); |
dmsg(2, ("<--resume\n")); |
196 |
} |
} |
197 |
|
|