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

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

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

revision 2027 by iliev, Tue Nov 3 19:27:42 2009 UTC revision 2205 by iliev, Mon Jul 11 17:52:01 2011 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-2009 Christian Schoenebeck                         *   *   Copyright (C) 2005-2008 Christian Schoenebeck                         *
7   *   Copyright (C) 2009 Grigor Iliev                                       *   *   Copyright (C) 2009-2010 Christian Schoenebeck and Grigor Iliev        *
8   *                                                                         *   *                                                                         *
9   *   This program is free software; you can redistribute it and/or modify  *   *   This program is free software; you can redistribute it and/or modify  *
10   *   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 185  namespace LinuxSampler { Line 185  namespace LinuxSampler {
185                  itTriggerEvent = Pool<Event>::Iterator();                  itTriggerEvent = Pool<Event>::Iterator();
186    
187                  // If sample stream or release stage finished, kill the voice                  // If sample stream or release stage finished, kill the voice
188                  if (                  if (PlaybackState == Voice::playback_state_end || EG1Finished()) {
189                      PlaybackState == Voice::playback_state_end ||                      KillImmediately();
190                      EG1.getSegmentType() == gig::EGADSR::segment_end                  }
                 ) KillImmediately();  
191              }              }
192    
193              /**              /**
# Line 227  namespace LinuxSampler { Line 226  namespace LinuxSampler {
226              S*  pSample;   ///< Pointer to the sample to be played back              S*  pSample;   ///< Pointer to the sample to be played back
227              R*  pRegion;   ///< Pointer to the articulation information of current region of this voice              R*  pRegion;   ///< Pointer to the articulation information of current region of this voice
228    
229                virtual MidiKeyBase* GetMidiKeyInfo(int MIDIKey) {
230                    EC* pChannel = static_cast<EC*>(pEngineChannel);
231                    return &pChannel->pMIDIKeyInfo[MIDIKey];
232                }
233    
234              virtual unsigned long GetNoteOnTime(int MIDIKey) {              virtual unsigned long GetNoteOnTime(int MIDIKey) {
235                  EC* pChannel = static_cast<EC*>(pEngineChannel);                  EC* pChannel = static_cast<EC*>(pEngineChannel);
236                  return pChannel->pMIDIKeyInfo[MIDIKey].NoteOnTime;                  return pChannel->pMIDIKeyInfo[MIDIKey].NoteOnTime;

Legend:
Removed from v.2027  
changed lines
  Added in v.2205

  ViewVC Help
Powered by ViewVC