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

Diff of /linuxsampler/trunk/src/engines/common/InstrumentScriptVMFunctions.cpp

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

revision 2600 by schoenebeck, Sat Jun 7 00:16:03 2014 UTC revision 2606 by persson, Sun Jun 8 05:42:56 2014 UTC
# Line 57  namespace LinuxSampler { Line 57  namespace LinuxSampler {
57          e.Type = Event::type_note_on;          e.Type = Event::type_note_on;
58          e.Param.Note.Key = note;          e.Param.Note.Key = note;
59          e.Param.Note.Velocity = velocity;          e.Param.Note.Velocity = velocity;
60          e.Format = {}; // init format speific stuff with zero          memset(&e.Format, 0, sizeof(e.Format)); // init format speific stuff with zero
61    
62          int id = pEngineChannel->ScheduleEvent(&e, duration);          int id = pEngineChannel->ScheduleEvent(&e, duration);
63    
# Line 77  namespace LinuxSampler { Line 77  namespace LinuxSampler {
77              static_cast<AbstractEngineChannel*>(m_vm->m_event->cause.pEngineChannel);              static_cast<AbstractEngineChannel*>(m_vm->m_event->cause.pEngineChannel);
78    
79          Event e = m_vm->m_event->cause;          Event e = m_vm->m_event->cause;
80          e.Format = {}; // init format speific stuff with zero          memset(&e.Format, 0, sizeof(e.Format)); // init format speific stuff with zero
81          if (controller == CTRL_TABLE_IDX_AFTERTOUCH) {          if (controller == CTRL_TABLE_IDX_AFTERTOUCH) {
82              e.Type = Event::type_channel_pressure;              e.Type = Event::type_channel_pressure;
83              e.Param.ChannelPressure.Value = value & 127;              e.Param.ChannelPressure.Value = value & 127;

Legend:
Removed from v.2600  
changed lines
  Added in v.2606

  ViewVC Help
Powered by ViewVC