/[svn]/linuxsampler/trunk/src/voice.cpp
ViewVC logotype

Diff of /linuxsampler/trunk/src/voice.cpp

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

revision 34 by schoenebeck, Mon Feb 16 19:30:42 2004 UTC revision 35 by schoenebeck, Fri Mar 5 13:46:15 2004 UTC
# Line 217  void Voice::Render(uint Samples) { Line 217  void Voice::Render(uint Samples) {
217  }  }
218    
219  /**  /**
220     *  Resets voice variables. Should only be called if rendering process is
221     *  suspended / not running.
222     */
223    void Voice::Reset() {
224        DiskStreamRef.pStream = NULL;
225        DiskStreamRef.hStream = 0;
226        DiskStreamRef.State   = Stream::state_unused;
227        DiskStreamRef.OrderID = 0;
228        Active = false;
229    }
230    
231    /**
232   *  Process the control change event lists of the engine for the current   *  Process the control change event lists of the engine for the current
233   *  audio fragment. Event values will be applied to the synthesis parameter   *  audio fragment. Event values will be applied to the synthesis parameter
234   *  matrix.   *  matrix.
# Line 359  void Voice::Kill() { Line 371  void Voice::Kill() {
371      if (DiskVoice && DiskStreamRef.State != Stream::state_unused) {      if (DiskVoice && DiskStreamRef.State != Stream::state_unused) {
372          pDiskThread->OrderDeletionOfStream(&DiskStreamRef);          pDiskThread->OrderDeletionOfStream(&DiskStreamRef);
373      }      }
374      DiskStreamRef.pStream = NULL;      Reset();
     DiskStreamRef.hStream = 0;  
     DiskStreamRef.State   = Stream::state_unused;  
     DiskStreamRef.OrderID = 0;  
     Active = false;  
375  }  }

Legend:
Removed from v.34  
changed lines
  Added in v.35

  ViewVC Help
Powered by ViewVC