189 |
catch (RIFF::Exception e) { |
catch (RIFF::Exception e) { |
190 |
InstrumentStat = -2; |
InstrumentStat = -2; |
191 |
String msg = "gig::Engine error: Failed to load instrument, cause: " + e.Message; |
String msg = "gig::Engine error: Failed to load instrument, cause: " + e.Message; |
192 |
throw LinuxSamplerException(msg); |
throw Exception(msg); |
193 |
} |
} |
194 |
catch (InstrumentResourceManagerException e) { |
catch (InstrumentResourceManagerException e) { |
195 |
InstrumentStat = -3; |
InstrumentStat = -3; |
196 |
String msg = "gig::Engine error: Failed to load instrument, cause: " + e.Message(); |
String msg = "gig::Engine error: Failed to load instrument, cause: " + e.Message(); |
197 |
throw LinuxSamplerException(msg); |
throw Exception(msg); |
198 |
} |
} |
199 |
catch (...) { |
catch (...) { |
200 |
InstrumentStat = -4; |
InstrumentStat = -4; |
201 |
throw LinuxSamplerException("gig::Engine error: Failed to load instrument, cause: Unknown exception while trying to parse gig file."); |
throw Exception("gig::Engine error: Failed to load instrument, cause: Unknown exception while trying to parse gig file."); |
202 |
} |
} |
203 |
|
|
204 |
// rebuild ActiveKeyGroups map with key groups of current instrument |
// rebuild ActiveKeyGroups map with key groups of current instrument |
215 |
} |
} |
216 |
catch (AudioOutputException e) { |
catch (AudioOutputException e) { |
217 |
String msg = "Audio output device unable to provide 2 audio channels, cause: " + e.Message(); |
String msg = "Audio output device unable to provide 2 audio channels, cause: " + e.Message(); |
218 |
throw LinuxSamplerException(msg); |
throw Exception(msg); |
219 |
} |
} |
220 |
|
|
221 |
if (pEngine) pEngine->Enable(); |
if (pEngine) pEngine->Enable(); |
271 |
AudioDeviceChannelRight = 1; |
AudioDeviceChannelRight = 1; |
272 |
pOutputLeft = pAudioOut->Channel(0)->Buffer(); |
pOutputLeft = pAudioOut->Channel(0)->Buffer(); |
273 |
pOutputRight = pAudioOut->Channel(1)->Buffer(); |
pOutputRight = pAudioOut->Channel(1)->Buffer(); |
274 |
|
MidiInputPort::AddSysexListener(pEngine); |
275 |
} |
} |
276 |
|
|
277 |
void EngineChannel::DisconnectAudioOutputDevice() { |
void EngineChannel::DisconnectAudioOutputDevice() { |
446 |
GlobalPanLeft = 1.0f; |
GlobalPanLeft = 1.0f; |
447 |
GlobalPanRight = 1.0f; |
GlobalPanRight = 1.0f; |
448 |
// set all MIDI controller values to zero |
// set all MIDI controller values to zero |
449 |
memset(ControllerTable, 0x00, 128); |
memset(ControllerTable, 0x00, 129); |
450 |
} |
} |
451 |
|
|
452 |
/** |
/** |