/[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 14 by schoenebeck, Fri Nov 21 15:07:23 2003 UTC revision 15 by schoenebeck, Sun Nov 23 21:16:49 2003 UTC
# Line 35  Voice::~Voice() { Line 35  Voice::~Voice() {
35  }  }
36    
37  void Voice::Trigger(int MIDIKey, uint8_t Velocity, gig::Instrument* Instrument) {  void Voice::Trigger(int MIDIKey, uint8_t Velocity, gig::Instrument* Instrument) {
38      Active        = true;      Active          = true;
39      this->MIDIKey = MIDIKey;      this->MIDIKey   = MIDIKey;
40      pRegion       = Instrument->GetRegion(MIDIKey);      pRegion         = Instrument->GetRegion(MIDIKey);
41      PlaybackState = playback_state_ram; // we always start playback from RAM cache and switch then to disk if needed      PlaybackState   = playback_state_ram; // we always start playback from RAM cache and switch then to disk if needed
42      Pos           = 0;      Pos             = 0;
43        ReleaseVelocity = 127; // default release velocity value
44    
45      if (!pRegion) {      if (!pRegion) {
46          std::cerr << "Audio Thread: No Region defined for MIDI key " << MIDIKey << std::endl << std::flush;          std::cerr << "Audio Thread: No Region defined for MIDI key " << MIDIKey << std::endl << std::flush;

Legend:
Removed from v.14  
changed lines
  Added in v.15

  ViewVC Help
Powered by ViewVC