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(); |