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 * |
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 || |
189 |
PlaybackState == Voice::playback_state_end || |
pEG1->getSegmentType() == EG::segment_end) { |
190 |
EG1.getSegmentType() == gig::EGADSR::segment_end |
KillImmediately(); |
191 |
) KillImmediately(); |
} |
192 |
} |
} |
193 |
|
|
194 |
/** |
/** |