Windows 64 bit VST: No GUI?

You're new to the LinuxSampler world? You don't know where to start and nothing works? Here's the place to ask for help.
Post Reply
Hasenohr
Newbie
Posts: 4
Joined: Fri Feb 18, 2011 6:53 pm

Windows 64 bit VST: No GUI?

Post by Hasenohr » Fri Feb 18, 2011 7:02 pm

Hello, I am trying to set-up Linux Sampler on a 64 bit Windows 7 installation using Reaper (64 bit) and the 64 bit VST of Linux sampler.
* LS is shown in Reaper as an instrument and I can add it to a track.
* If I do this, I do NOT! get a full user interface like Fantasia.
* But I can run the stand-alone version of Fantasia.
* The Java VM I have installed is 32 bit.

Any Idea what could be wrong / has anyone tested the 64 bit VST version?
TIA, Roland

ggoodesa
Advanced User
Posts: 116
Joined: Thu Aug 14, 2008 6:48 pm

Re: Windows 64 bit VST: No GUI?

Post by ggoodesa » Sat Feb 19, 2011 6:52 am

Hi Roland,

You loading the 64-bit VST plugin not the 32-bit VST plugin.. If you're loading the 64-bit then your Java install does not support it and Fantasia won't be able to load... try the 32-bit VST plugin

GrahamG

Hasenohr
Newbie
Posts: 4
Joined: Fri Feb 18, 2011 6:53 pm

Re: Windows 64 bit VST: No GUI?

Post by Hasenohr » Sat Feb 19, 2011 9:45 am

Thank you Graham,
I will try this, is there any way I can use the 64 bit VST with Reaper? Would installing a 64 bit VM solve the problem?
May be this could be given as a hint during install - just a suggestion.
/Roland

Andreas
Developer
Posts: 214
Joined: Sun Feb 03, 2008 8:33 am

Re: Windows 64 bit VST: No GUI?

Post by Andreas » Sun Feb 20, 2011 3:32 pm

I've committed a fix for this now. The 64 bit LinuxSampler VST plugin should now be able to launch Fantasia even if there's only a 32 bit Java installed, and vice versa, the 32 bit plugin should be able to launch Fantasia with a 64 bit Java.

Hasenohr
Newbie
Posts: 4
Joined: Fri Feb 18, 2011 6:53 pm

Screen reader detection?

Post by Hasenohr » Tue Feb 22, 2011 6:39 pm

Hi, well this is sure great news, thank you.
I have another question regarding the VST.
There are two Java distributions, Fantasia and "Classic".
For people like me who are visually handycapped and who using a screen reader (www.nvda-project.org) to access the screen, the classic version has some advantages i.e. it is simply more accessible.
Would it be possible to detect if a screen reader is running and than decide whether to look for "Fantasia" or "js-classic"?
This could be put in vst.cpp like this:

// assume the (RZ): GUI is in the same directory or one directory above
// the liblinuxsampler dll
// RZ: Detect if a screen reader is running
int iAction = 70; // SPI_GETSCREENREADER constant;
int iParam = 0;
int iUpdate = 0;
bool result = false;
bool bReturn = SystemParametersInfo(iAction, iParam, &result, iUpdate);
/* RZ:*/ String lsGuiName = "Fantasia";
if (result) // make it the classic version
{
lsGuiName = "ls-classic";
}
String lspath = LinuxSampler::Sampler::GetInstallDir();
if (!lspath.empty()) {
lspath += "\\";
WIN32_FIND_DATA fd;
HANDLE hFind = FindFirstFile((lspath + "lsGuiName + "*.jar").c_str(), &fd);
if (hFind == INVALID_HANDLE_VALUE) {
lspath += "..\\";
hFind = FindFirstFile((lspath + lsGuiName + "*.jar").c_str(), &fd);
}
if (hFind != INVALID_HANDLE_VALUE) {
String fantasia(fd.cFileName);
FindClose(hFind);

// start a java process
...

Thanks again for the 64 bit update!
/Roland

Post Reply