Code: Select all
ScriptPatchVars.cpp:153:5: error: use of undeclared identifier 'LinuxSampler'
LinuxSampler::ScriptVM* vm = LinuxSampler::ScriptVMFactory::Create("gig");
^
ScriptPatchVars.cpp:153:34: error: use of undeclared identifier 'LinuxSampler'
LinuxSampler::ScriptVM* vm = LinuxSampler::ScriptVMFactory::Create("gig");
^
ScriptPatchVars.cpp:154:5: error: use of undeclared identifier 'LinuxSampler'
LinuxSampler::VMParserContext* ctx = vm->loadScript(
^
ScriptPatchVars.cpp:155:45: error: use of undeclared identifier 'String'; did you mean 'ToString'?
script->GetScriptAsText(), std::map<String,String>(), &vars
^~~~~~
ToString
./global.h:139:38: note: 'ToString' declared here
template<class T> inline std::string ToString(T o) {
^
ScriptPatchVars.cpp:155:52: error: unknown type name 'String'; did you mean 'GString'?
script->GetScriptAsText(), std::map<String,String>(), &vars
^~~~~~
GString
/usr/include/glib-2.0/glib/gstring.h:39:33: note: 'GString' declared here
typedef struct _GString GString;
^
ScriptPatchVars.cpp:155:45: error: template argument for template type parameter must be a type
script->GetScriptAsText(), std::map<String,String>(), &vars
^~~~~~
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.5.0/../../../../include/c++/7.5.0/bits/stl_multimap.h:68:22: note: template parameter is declared
here
template <typename _Key, typename _Tp, typename _Compare, typename _Alloc>
^
ScriptPatchVars.cpp:163:5: error: use of undeclared identifier 'LinuxSampler'
LinuxSampler::optional<std::string> defaultValue;
^
ScriptPatchVars.cpp:164:5: error: use of undeclared identifier 'LinuxSampler'
LinuxSampler::optional<std::string> overrideValue;
^
Ignoring that error, and instead starting linuxsampler it crashes as follows when the GUI (I'm using Fantasia) tries to attach to it
Code: Select all
LinuxSampler 2.2.0
Copyright (C) 2003,2004 by Benno Senoner and Christian Schoenebeck
Copyright (C) 2005-2021 Christian Schoenebeck
Binary built: Nov 21 2021
Detected features: MMX SSE SSE2
Automatic Stacktrace: Off
Creating Sampler...OK
Registered sampler engines: 'GIG','SF2','SFZ'
Registered MIDI input drivers: ALSA,JACK
Registered audio output drivers: ALSA,JACK
Loading instrument editor plugins...OK
Registered instrument editors:
Registered internal effect systems: LADSPA
Registered internal effects: 109
Starting LSCP network server (0.0.0.0:8888)...OK
LinuxSampler initialization completed. :-)
LSCPServer: Client connection established on socket:4.
LSCPServer: Client connection established on socket:5.
ALSA lib conf.c:3523:(snd_config_hooks_call) Cannot open shared library libasound_module_conf_pulse.so
ALSA lib control.c:1373:(snd_ctl_open_noupdate) Invalid CTL hw:0
AudioOutputDeviceAlsa: Cannot open sound control for card 0 - No such file or directory
AudioOutputDeviceAlsa: Can't find any card
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
Aborted (core dumped)
Code: Select all
Nov 21, 2021 2:28:36 PM org.linuxsampler.lscp.Client setSoTimeout
INFO: Unable to set timeout
java.net.SocketException: Socket Closed
at java.base/java.net.AbstractPlainSocketImpl.setOption(AbstractPlainSocketImpl.java:248)
at java.base/java.net.Socket.setSoTimeout(Socket.java:1159)
at org.linuxsampler.lscp.Client.setSoTimeout(Client.java:188)
at org.jsampler.task.Global$SetClientReadTimeout.exec(Global.java:265)
at org.jsampler.task.EnhancedTask.run(EnhancedTask.java:57)
at net.sf.juife.AbstractTask.invokeAndWait(AbstractTask.java:180)
at net.sf.juife.TaskQueue.processTheQueue(TaskQueue.java:176)
at net.sf.juife.TaskQueue.start0(TaskQueue.java:147)
at net.sf.juife.TaskQueue.access$000(TaskQueue.java:43)
at net.sf.juife.TaskQueue$1.run(TaskQueue.java:140)
Nov 21, 2021 2:28:37 PM org.jsampler.DefaultLSConsoleModel$LSConsoleThread run
INFO: Stream closed.
java.io.IOException: Stream closed.
at java.base/java.net.AbstractPlainSocketImpl.available(AbstractPlainSocketImpl.java:519)
at java.base/java.net.SocketInputStream.available(SocketInputStream.java:235)
at org.jsampler.DefaultLSConsoleModel$LscpInputStream.available(DefaultLSConsoleModel.java:528)
at org.jsampler.DefaultLSConsoleModel$LSConsoleThread.processInput(DefaultLSConsoleModel.java:467)
at org.jsampler.DefaultLSConsoleModel$LSConsoleThread.run(DefaultLSConsoleModel.java:443)
Code: Select all
# Audio Output Drivers:
# ALSA: yes, JACK: yes, ARTS: no, CoreAudio: no, ASIO: no
PS: it goes without saying that the computer I'm running this on has perfectly fine working ALSA installation which other applications (for example PianoTeQ) work fine with. Jack is also installed but not enabled -- yet I can select it with other applications (for same example PianoTeQ), even though it obviously does not sound (but does not crash anything either)