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-2009 Christian Schoenebeck * |
7 |
* Copyright (C) 2009-2011 Grigor Iliev * |
* Copyright (C) 2009 - 2012 Christian Schoenebeck and Grigor Iliev * |
8 |
|
* Copyright (C) 2012 - 2016 Christian Schoenebeck and Andreas Persson * |
9 |
* * |
* * |
10 |
* This program is free software; you can redistribute it and/or modify * |
* This program is free software; you can redistribute it and/or modify * |
11 |
* 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 * |
48 |
AbstractEngine::Format EngineChannel::GetEngineFormat() { return AbstractEngine::SFZ; } |
AbstractEngine::Format EngineChannel::GetEngineFormat() { return AbstractEngine::SFZ; } |
49 |
|
|
50 |
/** This method is not thread safe! */ |
/** This method is not thread safe! */ |
51 |
void EngineChannel::ResetInternal() { |
void EngineChannel::ResetInternal(bool bResetEngine) { |
52 |
CurrentKeyDimension = 0; |
CurrentKeyDimension = 0; |
53 |
EngineChannelBase<Voice, ::sfz::Region, ::sfz::Instrument>::ResetInternal(); |
EngineChannelBase<Voice, ::sfz::Region, ::sfz::Instrument>::ResetInternal(bResetEngine); |
54 |
for(int i = 0; i < 128; i++) PressedKeys[i] = false; |
for(int i = 0; i < 128; i++) PressedKeys[i] = false; |
55 |
} |
} |
56 |
|
|