/[svn]/linuxsampler/trunk/src/engines/common/Event.h
ViewVC logotype

Diff of /linuxsampler/trunk/src/engines/common/Event.h

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

revision 3685 by schoenebeck, Sat Aug 24 11:22:52 2019 UTC revision 3686 by schoenebeck, Thu Jan 2 22:02:53 2020 UTC
# Line 3  Line 3 
3   *   LinuxSampler - modular, streaming capable sampler                     *   *   LinuxSampler - modular, streaming capable sampler                     *
4   *                                                                         *   *                                                                         *
5   *   Copyright (C) 2003, 2004 by Benno Senoner and Christian Schoenebeck   *   *   Copyright (C) 2003, 2004 by Benno Senoner and Christian Schoenebeck   *
6   *   Copyright (C) 2005 - 2019 Christian Schoenebeck                       *   *   Copyright (C) 2005 - 2020 Christian Schoenebeck                       *
7   *                                                                         *   *                                                                         *
8   *   This program is free software; you can redistribute it and/or modify  *   *   This program is free software; you can redistribute it and/or modify  *
9   *   it under the terms of the GNU General Public License as published by  *   *   it under the terms of the GNU General Public License as published by  *
# Line 294  namespace LinuxSampler { Line 294  namespace LinuxSampler {
294              MidiInputPort* pMidiInputPort; ///< Pointer to the MIDI input port on which this event occured (NOTE: currently only for global events, that is SysEx messages)              MidiInputPort* pMidiInputPort; ///< Pointer to the MIDI input port on which this event occured (NOTE: currently only for global events, that is SysEx messages)
295    
296              inline void Init() {              inline void Init() {
297                  //FIXME: probably we should memset() zero entire structure here, due to potential union initialization conflicts (see comment on ValueScope::RELATIVE)                  memset(&Param, 0, sizeof(Param));
                 Param.Note.ID = 0;  
                 Param.Note.ParentNoteID = 0;  
                 Param.NoteSynthParam.NoteID = 0;  
                 Param.NoteSynthParam.Scope = ValueScope::RELATIVE;  
298              }              }
299              inline int32_t FragmentPos() {              inline int32_t FragmentPos() {
300                  if (iFragmentPos >= 0) return iFragmentPos;                  if (iFragmentPos >= 0) return iFragmentPos;

Legend:
Removed from v.3685  
changed lines
  Added in v.3686

  ViewVC Help
Powered by ViewVC