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, 2006 Christian Schoenebeck * |
* Copyright (C) 2005 - 2007 Christian Schoenebeck * |
7 |
* * |
* * |
8 |
* This program is free software; you can redistribute it and/or modify * |
* This program is free software; you can redistribute it and/or modify * |
9 |
* 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 * |
192 |
instrid.Index = InstrumentIdx; |
instrid.Index = InstrumentIdx; |
193 |
newInstrument = Engine::instruments.Borrow(instrid, this); |
newInstrument = Engine::instruments.Borrow(instrid, this); |
194 |
if (!newInstrument) { |
if (!newInstrument) { |
195 |
InstrumentStat = -1; |
throw InstrumentResourceManagerException("resource was not created"); |
|
dmsg(1,("no instrument loaded!!!\n")); |
|
|
exit(EXIT_FAILURE); |
|
196 |
} |
} |
197 |
} |
} |
198 |
catch (RIFF::Exception e) { |
catch (RIFF::Exception e) { |
633 |
GlobalPanRight = 1.0f; |
GlobalPanRight = 1.0f; |
634 |
// set all MIDI controller values to zero |
// set all MIDI controller values to zero |
635 |
memset(ControllerTable, 0x00, 129); |
memset(ControllerTable, 0x00, 129); |
636 |
|
// reset all FX Send levels |
637 |
|
for ( |
638 |
|
std::vector<FxSend*>::iterator iter = fxSends.begin(); |
639 |
|
iter != fxSends.end(); iter++ |
640 |
|
) { |
641 |
|
(*iter)->Reset(); |
642 |
|
} |
643 |
} |
} |
644 |
|
|
645 |
/** |
/** |