/[svn]/linuxsampler/trunk/src/scriptvm/ScriptVM.cpp
ViewVC logotype

Diff of /linuxsampler/trunk/src/scriptvm/ScriptVM.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3706 by schoenebeck, Fri Jan 3 10:18:21 2020 UTC revision 3707 by schoenebeck, Wed Jan 8 21:21:58 2020 UTC
# Line 247  namespace LinuxSampler { Line 247  namespace LinuxSampler {
247          context->createScanner(is);          context->createScanner(is);
248    
249          InstrScript_parse(context);          InstrScript_parse(context);
250          dmsg(2,("Allocating %lld bytes of global int VM memory.\n", context->globalIntVarCount * sizeof(vmint)));          dmsg(2,("Allocating %" PRId64 " bytes of global int VM memory.\n", int64_t(context->globalIntVarCount * sizeof(vmint))));
251          dmsg(2,("Allocating %lld bytes of global real VM memory.\n", context->globalRealVarCount * sizeof(vmfloat)));          dmsg(2,("Allocating %" PRId64 " bytes of global real VM memory.\n", int64_t(context->globalRealVarCount * sizeof(vmfloat))));
252          dmsg(2,("Allocating %lld bytes of global unit factor VM memory.\n", context->globalUnitFactorCount * sizeof(vmfloat)));          dmsg(2,("Allocating %" PRId64 " bytes of global unit factor VM memory.\n", int64_t(context->globalUnitFactorCount * sizeof(vmfloat))));
253          dmsg(2,("Allocating %lld of global VM string variables.\n", context->globalStrVarCount));          dmsg(2,("Allocating %" PRId64 " of global VM string variables.\n", (int64_t)context->globalStrVarCount));
254          if (!context->globalIntMemory)          if (!context->globalIntMemory)
255              context->globalIntMemory = new ArrayList<vmint>();              context->globalIntMemory = new ArrayList<vmint>();
256          if (!context->globalRealMemory)          if (!context->globalRealMemory)
# Line 303  namespace LinuxSampler { Line 303  namespace LinuxSampler {
303                  _requiredMaxStackSizeFor(&*parserCtx->handlers);                  _requiredMaxStackSizeFor(&*parserCtx->handlers);
304          }          }
305          execCtx->stack.resize(parserCtx->requiredMaxStackSize);          execCtx->stack.resize(parserCtx->requiredMaxStackSize);
306          dmsg(2,("Created VM exec context with %lld bytes VM stack size.\n",          dmsg(2,("Created VM exec context with %" PRId64 " bytes VM stack size.\n",
307                  parserCtx->requiredMaxStackSize * sizeof(ExecContext::StackFrame)));                  int64_t(parserCtx->requiredMaxStackSize * sizeof(ExecContext::StackFrame))));
308          //printf("execCtx=0x%lx\n", (uint64_t)execCtx);          //printf("execCtx=0x%lx\n", (uint64_t)execCtx);
309          const vmint polyIntSize = parserCtx->polyphonicIntVarCount;          const vmint polyIntSize = parserCtx->polyphonicIntVarCount;
310          execCtx->polyphonicIntMemory.resize(polyIntSize);          execCtx->polyphonicIntMemory.resize(polyIntSize);
# Line 319  namespace LinuxSampler { Line 319  namespace LinuxSampler {
319          for (vmint i = 0; i < polyFactorSize; ++i)          for (vmint i = 0; i < polyFactorSize; ++i)
320              execCtx->polyphonicUnitFactorMemory[i] = VM_NO_FACTOR;              execCtx->polyphonicUnitFactorMemory[i] = VM_NO_FACTOR;
321    
322          dmsg(2,("Allocated %lld bytes polyphonic int memory.\n", polyIntSize * sizeof(vmint)));          dmsg(2,("Allocated %" PRId64 " bytes polyphonic int memory.\n", int64_t(polyIntSize * sizeof(vmint))));
323          dmsg(2,("Allocated %lld bytes polyphonic real memory.\n", polyRealSize * sizeof(vmfloat)));          dmsg(2,("Allocated %" PRId64 " bytes polyphonic real memory.\n", int64_t(polyRealSize * sizeof(vmfloat))));
324          dmsg(2,("Allocated %lld bytes unit factor memory.\n", polyFactorSize * sizeof(vmfloat)));          dmsg(2,("Allocated %" PRId64 " bytes unit factor memory.\n", int64_t(polyFactorSize * sizeof(vmfloat))));
325          return execCtx;          return execCtx;
326      }      }
327    

Legend:
Removed from v.3706  
changed lines
  Added in v.3707

  ViewVC Help
Powered by ViewVC