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 * |
46 |
AbstractEngine::Format EngineChannel::GetEngineFormat() { return AbstractEngine::SF2; } |
AbstractEngine::Format EngineChannel::GetEngineFormat() { return AbstractEngine::SF2; } |
47 |
|
|
48 |
/** This method is not thread safe! */ |
/** This method is not thread safe! */ |
49 |
void EngineChannel::ResetInternal() { |
void EngineChannel::ResetInternal(bool bResetEngine) { |
50 |
CurrentKeyDimension = 0; |
CurrentKeyDimension = 0; |
51 |
EngineChannelBase<Voice, ::sf2::Region, ::sf2::Preset>::ResetInternal(); |
EngineChannelBase<Voice, ::sf2::Region, ::sf2::Preset>::ResetInternal(bResetEngine); |
52 |
for(int i = 0; i < 128; i++) PressedKeys[i] = false; |
for(int i = 0; i < 128; i++) PressedKeys[i] = false; |
53 |
} |
} |
54 |
|
|