/[svn]/linuxsampler/trunk/src/engines/common/AbstractInstrumentManager.cpp
ViewVC logotype

Contents of /linuxsampler/trunk/src/engines/common/AbstractInstrumentManager.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2611 - (show annotations) (download)
Mon Jun 9 19:20:37 2014 UTC (9 years, 9 months ago) by schoenebeck
File size: 812 byte(s)
* Fixed crash when loading an instrument script.
* Fixed "init" script handler only to be executed once:
  when the script was loaded.
* Fixed aftertouch script event which always had value zero
  and controller number was set to aftertouch value instead.
* gig Engine: Fixed handling of "smartmidi" dimension, which
  was recognized as "unknown" dimension.
* Fixed script function gig_set_dim_zone(): was accessing
  wrong event.
* ls_instr_script command line tool: is now not limited to
  core language scripts, but can now also parse sampler format
  dependent instrument scripts, with the respective specific
  built-in script variables and functions.
* ScriptVM: Fixed runtime behavior of "and" and "or" binary
  script expressions, which also evaluated the right hand side
  of the expression even if the left hand side already failed
  the overall expression semantic to become true.
* Bumped version (1.0.0.svn46).

1 /*
2 * Copyright (c) 2014 Christian Schoenebeck
3 *
4 * http://www.linuxsampler.org
5 *
6 * This file is part of LinuxSampler and released under the same terms.
7 * See README file for details.
8 */
9
10 #include "AbstractInstrumentManager.h"
11 #include "../AbstractEngine.h"
12 #include "../AbstractEngineChannel.h"
13
14 namespace LinuxSampler {
15
16 VMParserContext* AbstractInstrumentManager::ScriptResourceManager::Create(String Key, InstrumentScriptConsumer* pConsumer, void*& pArg) {
17 AbstractEngineChannel* pEngineChannel = dynamic_cast<AbstractEngineChannel*>(pConsumer);
18 return pEngineChannel->pEngine->pScriptVM->loadScript(Key);
19 }
20
21 void AbstractInstrumentManager::ScriptResourceManager::Destroy(VMParserContext* pResource, void* pArg) {
22 delete pResource;
23 }
24
25 } // namespace LinuxSampler

  ViewVC Help
Powered by ViewVC